Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestReaderTruncated (0.11 sec)

  1. src/compress/flate/inflate_test.go

    	io.Copy(&inflated[1], f)
    	f.Close()
    
    	for i, s := range ss {
    		if s != inflated[i].String() {
    			t.Errorf("inflated[%d]:\ngot  %q\nwant %q", i, inflated[i], s)
    		}
    	}
    }
    
    func TestReaderTruncated(t *testing.T) {
    	vectors := []struct{ input, output string }{
    		{"\x00", ""},
    		{"\x00\f", ""},
    		{"\x00\f\x00", ""},
    		{"\x00\f\x00\xf3\xff", ""},
    		{"\x00\f\x00\xf3\xffhello", "hello"},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 24 23:23:54 UTC 2023
    - 3.3K bytes
    - Viewed (0)
Back to top