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

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

@ -153,8 +153,8 @@ func TestSkeleton(t *testing.T) {
return skel
}
if skeleton("warning") != skeleton("waming") {
t.Errorf("i give up, Oragono should consider rn confusable with m")
if skeleton("warning") == skeleton("waming") {
t.Errorf("Oragono shouldn't consider rn confusable with m")
}
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")
}
if skeleton("") != "smt" {
if skeleton("") != skeleton("smt") {
t.Errorf("after skeletonizing, we should casefold")
}