Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for W1 (0.02 sec)

  1. src/bufio/bufio_test.go

    	}
    
    	var w1 writeCountingDiscard
    	b1 := NewWriterSize(&w1, 1234)
    	b1.WriteString(strings.Repeat("x", 1200))
    	b1.Flush()
    	if w1 != 1 {
    		t.Fatalf("flush 1200 'x's: got %d writes, want 1", w1)
    	}
    	b1.WriteString(strings.Repeat("x", 89))
    	if w1 != 1 {
    		t.Fatalf("write 1200 + 89 'x's: got %d writes, want 1", w1)
    	}
    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