From 6b77e16c6f86e5c05795fe881a25be3d17e9c22a Mon Sep 17 00:00:00 2001 From: flywind <43030857+xflywind@users.noreply.github.com> Date: Fri, 27 Nov 2020 12:41:22 +0800 Subject: tunidecode minor improvement (#16157) --- tests/stdlib/tunidecode.nim | 5 ++--- 1 file 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" -- cgit 1.4.1-2-gfad0