- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for TestSpace (0.21 sec)
-
src/bufio/scan_test.go
"io" "strings" "testing" "unicode" "unicode/utf8" ) const smallMaxTokenSize = 256 // Much smaller for more efficient testing. // Test white space table matches the Unicode definition. func TestSpace(t *testing.T) { for r := rune(0); r <= utf8.MaxRune; r++ { if IsSpace(r) != unicode.IsSpace(r) { t.Fatalf("white space property disagrees: %#U should be %t", r, unicode.IsSpace(r)) } } }
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Fri Sep 22 16:22:42 UTC 2023 - 14.3K bytes - Viewed (0)