diff options
author | flywind <43030857+xflywind@users.noreply.github.com> | 2020-11-25 02:06:41 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-24 19:06:41 +0100 |
commit | cbc793b30b10b8e82af7313ac8cd438abf97f7d7 (patch) | |
tree | 84c1ee6cc25ef9f4e407d0492c9a66deac87712f /lib/pure/unidecode/unidecode.nim | |
parent | d306a04466b7f1129620dc3ab35443119ed4c867 (diff) | |
download | Nim-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.nim | 5 |
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 " |