From 29f40c0d4065a0f30bbd1d4c4c45e742d42cffb0 Mon Sep 17 00:00:00 2001 From: ian Date: Fri, 30 Mar 2012 21:27:11 +0000 Subject: libgo: Update to weekly.2012-03-13. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186023 138bc75d-0d04-0410-961f-82ee72b054a4 --- libgo/go/fmt/fmt_test.go | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'libgo/go/fmt/fmt_test.go') diff --git a/libgo/go/fmt/fmt_test.go b/libgo/go/fmt/fmt_test.go index f34df59422f..e0c587a3525 100644 --- a/libgo/go/fmt/fmt_test.go +++ b/libgo/go/fmt/fmt_test.go @@ -13,6 +13,7 @@ import ( "strings" "testing" "time" + "unicode" ) type ( @@ -830,3 +831,13 @@ func TestBadVerbRecursion(t *testing.T) { t.Error("fail with value") } } + +func TestIsSpace(t *testing.T) { + // This tests the internal isSpace function. + // IsSpace = isSpace is defined in export_test.go. + for i := rune(0); i <= unicode.MaxRune; i++ { + if IsSpace(i) != unicode.IsSpace(i) { + t.Errorf("isSpace(%U) = %v, want %v", i, IsSpace(i), unicode.IsSpace(i)) + } + } +} -- cgit v1.2.1