3
0
mirror of https://github.com/ergochat/ergo.git synced 2024-11-10 22:19:31 +01:00

remove m -> rn skeleton mapping again

This commit is contained in:
Shivaram Lingamneni 2019-06-24 06:18:18 -04:00
parent ee08419f4a
commit 24c46235a3
2 changed files with 4 additions and 4 deletions

View File

@ -148,7 +148,7 @@ func Skeleton(name string) (string, error) {
// same as PRECIS: // same as PRECIS:
name = width.Fold.String(name) name = width.Fold.String(name)
name = confusables.Skeleton(name) name = confusables.SkeletonTweaked(name)
// internationalized lowercasing for skeletons; this is much more lenient than // internationalized lowercasing for skeletons; this is much more lenient than
// Casefold. In particular, skeletons are expected to mix scripts (which may // Casefold. In particular, skeletons are expected to mix scripts (which may

View File

@ -153,8 +153,8 @@ func TestSkeleton(t *testing.T) {
return skel return skel
} }
if skeleton("warning") != skeleton("waming") { if skeleton("warning") == skeleton("waming") {
t.Errorf("i give up, Oragono should consider rn confusable with m") t.Errorf("Oragono shouldn't consider rn confusable with m")
} }
if skeleton("Phi|ip") != "philip" { if skeleton("Phi|ip") != "philip" {
@ -165,7 +165,7 @@ func TestSkeleton(t *testing.T) {
t.Errorf("fullwidth characters should skeletonize to plain old ascii characters") t.Errorf("fullwidth characters should skeletonize to plain old ascii characters")
} }
if skeleton("") != "smt" { if skeleton("") != skeleton("smt") {
t.Errorf("after skeletonizing, we should casefold") t.Errorf("after skeletonizing, we should casefold")
} }