LEFT | RIGHT |
(no file at all) | |
1 // Copyright 2012 The Go Authors. All rights reserved. | 1 // Copyright 2012 The Go Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style | 2 // Use of this source code is governed by a BSD-style |
3 // license that can be found in the LICENSE file. | 3 // license that can be found in the LICENSE file. |
4 | 4 |
5 package collate | 5 package collate |
6 | 6 |
7 import ( | 7 import ( |
8 "testing" | 8 "testing" |
9 "unicode" | 9 "unicode" |
10 ) | 10 ) |
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
134 {0x33FF, 0x52F3F}, | 134 {0x33FF, 0x52F3F}, |
135 {0x3400, 0x22F40}, | 135 {0x3400, 0x22F40}, |
136 {0x4DC0, 0x54900}, | 136 {0x4DC0, 0x54900}, |
137 {0x4DFF, 0x5493F}, | 137 {0x4DFF, 0x5493F}, |
138 {0x4E00, 0x14940}, | 138 {0x4E00, 0x14940}, |
139 {0x9FCB, 0x19B0B}, | 139 {0x9FCB, 0x19B0B}, |
140 {0xA000, 0x59B40}, | 140 {0xA000, 0x59B40}, |
141 {0xF8FF, 0x5F43F}, | 141 {0xF8FF, 0x5F43F}, |
142 {0xF900, 0x1F440}, | 142 {0xF900, 0x1F440}, |
143 {0xFA23, 0x1F563}, | 143 {0xFA23, 0x1F563}, |
144 » {0xFAFF, 0x1F63F}, | 144 » {0xFAD9, 0x1F619}, |
145 {0xFB00, 0x5F640}, | 145 {0xFB00, 0x5F640}, |
146 {0x20000, 0x3FB40}, | 146 {0x20000, 0x3FB40}, |
147 {0x2B81C, 0x4B35C}, | 147 {0x2B81C, 0x4B35C}, |
148 {unicode.MaxRune, 0x15FB3F}, // maximum primary value | 148 {unicode.MaxRune, 0x15FB3F}, // maximum primary value |
149 } | 149 } |
150 | 150 |
151 func TestImplicit(t *testing.T) { | 151 func TestImplicit(t *testing.T) { |
152 for _, tt := range implicitTests { | 152 for _, tt := range implicitTests { |
153 if p := implicitPrimary(tt.r); p != tt.p { | 153 if p := implicitPrimary(tt.r); p != tt.p { |
154 t.Errorf("%U: was %X; want %X", tt.r, p, tt.p) | 154 t.Errorf("%U: was %X; want %X", tt.r, p, tt.p) |
155 } | 155 } |
156 } | 156 } |
157 } | 157 } |
LEFT | RIGHT |