|
@@ -153,15 +153,15 @@ func TestSkeleton(t *testing.T) {
|
153
|
153
|
return skel
|
154
|
154
|
}
|
155
|
155
|
|
156
|
|
- if skeleton("warning") == skeleton("waming") {
|
157
|
|
- t.Errorf("Oragono shouldn't consider rn confusable with m")
|
|
156
|
+ if skeleton("warning") != skeleton("waming") {
|
|
157
|
+ t.Errorf("i give up, Oragono should consider rn confusable with m")
|
158
|
158
|
}
|
159
|
159
|
|
160
|
160
|
if skeleton("Phi|ip") != "philip" {
|
161
|
161
|
t.Errorf("but we still consider pipe confusable with l")
|
162
|
162
|
}
|
163
|
163
|
|
164
|
|
- if skeleton("smt") != "smt" {
|
|
164
|
+ if skeleton("smt") != skeleton("smt") {
|
165
|
165
|
t.Errorf("fullwidth characters should skeletonize to plain old ascii characters")
|
166
|
166
|
}
|
167
|
167
|
|
|
@@ -169,7 +169,7 @@ func TestSkeleton(t *testing.T) {
|
169
|
169
|
t.Errorf("after skeletonizing, we should casefold")
|
170
|
170
|
}
|
171
|
171
|
|
172
|
|
- if skeleton("smt") != "smt" {
|
|
172
|
+ if skeleton("smt") != skeleton("smt") {
|
173
|
173
|
t.Errorf("our friend lover successfully tricked the skeleton algorithm!")
|
174
|
174
|
}
|
175
|
175
|
|