Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for IsValidRune (0.05 sec)

  1. src/bytes/bytes_test.go

    	// tests of invalid UTF-8
    	{"\x801", isDigit, 1, 1},
    	{"\x80abc", isDigit, -1, -1},
    	{"\xc0a\xc0", isValidRune, 1, 1},
    	{"\xc0a\xc0", not(isValidRune), 0, 2},
    	{"\xc0☺\xc0", not(isValidRune), 0, 4},
    	{"\xc0☺\xc0\xc0", not(isValidRune), 0, 5},
    	{"ab\xc0a\xc0cd", not(isValidRune), 2, 4},
    	{"a\xe0\x80cd", not(isValidRune), 1, 2},
    }
    
    func TestIndexFunc(t *testing.T) {
    	for _, tc := range indexFuncTests {
    Registered: Tue Sep 09 11:13:09 UTC 2025
    - Last Modified: Mon Jul 28 18:13:58 UTC 2025
    - 62.9K bytes
    - Viewed (0)
Back to top