Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for UnreadByte (0.2 sec)

  1. src/bufio/bufio_test.go

    			}
    		}
    		// Unread one byte if there is one.
    		if n > 0 {
    			if err := r.UnreadByte(); err != nil {
    				t.Errorf("n = %d: unexpected error on UnreadByte: %v", n, err)
    			}
    		}
    		// Test that we cannot unread any further.
    		if err := r.UnreadByte(); err == nil {
    			t.Errorf("n = %d: expected error on UnreadByte", n)
    		}
    	}
    }
    
    func TestUnreadByteOthers(t *testing.T) {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Feb 10 18:56:01 GMT 2023
    - 51.5K bytes
    - Viewed (0)
Back to top