- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for TestEmptyLinesOK (0.07 sec)
-
src/bufio/scan_test.go
if *c > 0 { *c-- return 1, data[:1], nil } return 0, nil, nil } // Check that the looping-at-EOF check doesn't trigger for merely empty tokens. func TestEmptyLinesOK(t *testing.T) { c := countdown(10000) s := NewScanner(strings.NewReader(strings.Repeat("\n", 10000))) s.Split(c.split) for s.Scan() { } if s.Err() != nil { t.Fatal("after scan:", s.Err()) }
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Fri Sep 22 16:22:42 UTC 2023 - 14.3K bytes - Viewed (0)