- Sort Score
- Num 10 results
- Language All
Results 1 - 1 of 1 for TestScanLineEmptyFinalLine (0.09 seconds)
-
src/bufio/scan_test.go
lines := []string{ "abcdefghijklmn", "opqrstuvwxyz", } testNoNewline(text, lines, t) } // Test that the line splitter handles a final empty line. func TestScanLineEmptyFinalLine(t *testing.T) { const text = "abcdefghijklmn\nopqrstuvwxyz\n\n" lines := []string{ "abcdefghijklmn", "opqrstuvwxyz", "", } testNoNewline(text, lines, t) }Created: Tue Apr 07 11:13:11 GMT 2026 - Last Modified: Fri Sep 22 16:22:42 GMT 2023 - 14.3K bytes - Click Count (0)