- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for TestNoUnreadByteAfterDiscard (0.24 sec)
-
src/bufio/bufio_test.go
br := NewReader(strings.NewReader("example")) br.ReadRune() br.Discard(1) if err := br.UnreadRune(); err == nil { t.Error("UnreadRune didn't fail after Discard") } } func TestNoUnreadByteAfterDiscard(t *testing.T) { br := NewReader(strings.NewReader("example")) br.ReadByte() br.Discard(1) if err := br.UnreadByte(); err == nil { t.Error("UnreadByte didn't fail after Discard") } }
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Fri Nov 01 21:52:12 UTC 2024 - 51.6K bytes - Viewed (0)