diff --git a/src/unicode/utf8/utf8_test.go b/src/unicode/utf8/utf8_test.go index 60ce362f09..51571b61eb 100644 --- a/src/unicode/utf8/utf8_test.go +++ b/src/unicode/utf8/utf8_test.go @@ -100,6 +100,15 @@ func TestFullRune(t *testing.T) { t.Errorf("FullRune(%q) = true, want false", s1) } } + for _, s := range []string{"\xc0", "\xc1"} { + b := []byte(s) + if !FullRune(b) { + t.Errorf("FullRune(%q) = false, want true", s) + } + if !FullRuneInString(s) { + t.Errorf("FullRuneInString(%q) = false, want true", s) + } + } } func TestEncodeRune(t *testing.T) {