lib/fs: Add case-insensitive fakefs (#6074)

This commit is contained in:
Evgeny Kuznetsov
2019-11-29 11:17:42 +03:00
committed by Jakob Borg
parent c71116ee94
commit 1c277fc096
3 changed files with 859 additions and 32 deletions

View File

@@ -38,6 +38,8 @@ func TestUnicodeLowercase(t *testing.T) {
{"汉语/漢語 or 中文", "汉语/漢語 or 中文"},
// Niether katakana as far as I can tell.
{"チャーハン", "チャーハン"},
// Some special unicode characters, however, are folded by OSes
{"\u212A", "k"},
}
for _, tc := range cases {
res := UnicodeLowercase(tc[0])