tunidecode minor improvement (#16157)

This commit is contained in:
flywind
2020-11-27 12:41:22 +08:00
committed by GitHub
parent c0215d8d0d
commit 6b77e16c6f

View File

@@ -1,6 +1,5 @@
discard """
cmd: "nim $target --hints:on -d:embedUnidecodeTable $options $file"
output: "Ausserst"
"""
import unidecode
@@ -9,5 +8,5 @@ import std/unidecode # #14112
loadUnidecodeTable("lib/pure/unidecode/unidecode.dat")
# assert unidecode("\x53\x17\x4E\xB0") == "Bei Jing"
echo unidecode("Äußerst")
doAssert unidecode("北京") == "Bei Jing "
doAssert unidecode("Äußerst") == "Ausserst"