summary refs log tree commit diff stats
path: root/lib/pure/unidecode/unidecode.nim
diff options
context:
space:
mode:
authorflywind <43030857+xflywind@users.noreply.github.com>2020-11-25 02:06:41 +0800
committerGitHub <noreply@github.com>2020-11-24 19:06:41 +0100
commitcbc793b30b10b8e82af7313ac8cd438abf97f7d7 (patch)
tree84c1ee6cc25ef9f4e407d0492c9a66deac87712f /lib/pure/unidecode/unidecode.nim
parentd306a04466b7f1129620dc3ab35443119ed4c867 (diff)
downloadNim-cbc793b30b10b8e82af7313ac8cd438abf97f7d7.tar.gz
move tests to testament (#16101)
* move tests to testament

* minor

* fix random

* disable test random
Diffstat (limited to 'lib/pure/unidecode/unidecode.nim')
-rw-r--r--lib/pure/unidecode/unidecode.nim5
1 files changed, 0 insertions, 5 deletions
diff --git a/lib/pure/unidecode/unidecode.nim b/lib/pure/unidecode/unidecode.nim
index 30aaa7cd8..9a10ccc00 100644
--- a/lib/pure/unidecode/unidecode.nim
+++ b/lib/pure/unidecode/unidecode.nim
@@ -66,8 +66,3 @@ proc unidecode*(s: string): string =
     var c = int(r)
     if c <=% 127: add(result, chr(c))
     elif c <% translationTable.len: add(result, translationTable[c-128])
-
-when isMainModule:
-  #loadUnidecodeTable("lib/pure/unidecode/unidecode.dat")
-  doAssert unidecode("Äußerst") == "Ausserst"
-  doAssert unidecode("北京") == "Bei Jing "