Source file src/internal/stringslite/strings_test.go
1 // Copyright 2026 The Go Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style 3 // license that can be found in the LICENSE file. 4 5 package stringslite_test 6 7 import ( 8 "internal/stringslite" 9 "testing" 10 "unicode" 11 "unicode/utf8" 12 ) 13 14 func TestIsSpace(t *testing.T) { 15 for r := rune(0); r <= utf8.MaxRune; r++ { 16 if stringslite.IsSpace(r) != unicode.IsSpace(r) { 17 t.Fatalf("IsSpace(%U) = %v, want %v", r, stringslite.IsSpace(r), unicode.IsSpace(r)) 18 } 19 } 20 } 21