- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for TestDecodeRune (0.17 sec)
-
src/unicode/utf8/utf8_test.go
} if buf := AppendRune([]byte("init"), m.r); string(buf) != "init"+m.str { t.Errorf("AppendRune(init, %#04x) = %s, want %s", m.r, buf, "init"+m.str) } } } func TestDecodeRune(t *testing.T) { for _, m := range utf8map { b := []byte(m.str) r, size := DecodeRune(b) if r != m.r || size != len(b) { t.Errorf("DecodeRune(%q) = %#04x, %d want %#04x, %d", b, r, size, m.r, len(b))
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Sep 07 06:17:15 UTC 2022 - 16.2K bytes - Viewed (0)