Search Options

Results per page
Sort
Preferred Languages
Advance

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

  1. src/bufio/bufio_test.go

    		t.Errorf("writeString: expected %q, got %q", writeString, w.writeString)
    	}
    }
    
    func TestBufferFull(t *testing.T) {
    	const longString = "And now, hello, world! It is the time for all good men to come to the aid of their party"
    	buf := NewReaderSize(strings.NewReader(longString), minReadBufferSize)
    	line, err := buf.ReadSlice('!')
    	if string(line) != "And now, hello, " || err != ErrBufferFull {
    		t.Errorf("first ReadSlice(,) = %q, %v", line, err)
    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