diff options
Diffstat (limited to 'llgo/third_party/gofrontend/libgo/go/unicode/letter_test.go')
| -rw-r--r-- | llgo/third_party/gofrontend/libgo/go/unicode/letter_test.go | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/llgo/third_party/gofrontend/libgo/go/unicode/letter_test.go b/llgo/third_party/gofrontend/libgo/go/unicode/letter_test.go index 4ee11fb364f..a40b412f66d 100644 --- a/llgo/third_party/gofrontend/libgo/go/unicode/letter_test.go +++ b/llgo/third_party/gofrontend/libgo/go/unicode/letter_test.go @@ -24,6 +24,7 @@ var upperTest = []rune{ 0x181, 0x376, 0x3cf, + 0x13bd, 0x1f2a, 0x2102, 0x2c00, @@ -46,6 +47,7 @@ var notupperTest = []rune{ 0x377, 0x387, 0x2150, + 0xab7d, 0xffff, 0x10000, } @@ -194,6 +196,15 @@ var caseTest = []caseT{ {LowerCase, 0x0148, 0x0148}, {TitleCase, 0x0148, 0x0147}, + // Lowercase lower than uppercase. + // AB78;CHEROKEE SMALL LETTER GE;Ll;0;L;;;;;N;;;13A8;;13A8 + {UpperCase, 0xab78, 0x13a8}, + {LowerCase, 0xab78, 0xab78}, + {TitleCase, 0xab78, 0x13a8}, + {UpperCase, 0x13a8, 0x13a8}, + {LowerCase, 0x13a8, 0xab78}, + {TitleCase, 0x13a8, 0x13a8}, + // Last block in the 5.1.0 table // 10400;DESERET CAPITAL LETTER LONG I;Lu;0;L;;;;;N;;;;10428; {UpperCase, 0x10400, 0x10400}, @@ -405,6 +416,9 @@ var simpleFoldTests = []string{ // Extra special cases: has lower/upper but no case fold. "İ", "ı", + + // Upper comes before lower (Cherokee). + "\u13b0\uab80", } func TestSimpleFold(t *testing.T) { |

