diff options
author | flywind <43030857+xflywind@users.noreply.github.com> | 2020-11-27 12:41:22 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-27 12:41:22 +0800 |
commit | 6b77e16c6f86e5c05795fe881a25be3d17e9c22a (patch) | |
tree | d62f55cd3e7926e32a88b648adba67a249cc19ba /tests/stdlib/tunidecode.nim | |
parent | c0215d8d0dcefaf963f6138e4fcf48dee8ef0199 (diff) | |
download | Nim-6b77e16c6f86e5c05795fe881a25be3d17e9c22a.tar.gz |
tunidecode minor improvement (#16157)
Diffstat (limited to 'tests/stdlib/tunidecode.nim')
-rw-r--r-- | tests/stdlib/tunidecode.nim | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/stdlib/tunidecode.nim b/tests/stdlib/tunidecode.nim index 7784fffb4..be8e0523c 100644 --- a/tests/stdlib/tunidecode.nim +++ b/tests/stdlib/tunidecode.nim @@ -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" |