Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestReaderSimple (0.07 sec)

  1. src/bufio/bufio_test.go

    		if err == io.EOF {
    			break
    		}
    		if err == nil {
    			b[nb] = c
    			nb++
    		} else if err != iotest.ErrTimeout {
    			panic("Data: " + err.Error())
    		}
    	}
    	return string(b[0:nb])
    }
    
    func TestReaderSimple(t *testing.T) {
    	data := "hello world"
    	b := NewReader(strings.NewReader(data))
    	if s := readBytes(b); s != "hello world" {
    		t.Errorf("simple hello world test failed: got %q", s)
    	}
    
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Fri Nov 01 21:52:12 UTC 2024
    - 51.6K bytes
    - Viewed (0)
Back to top