mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-17 21:12:42 +00:00
move tests to testament (#16101)
* move tests to testament * minor * fix random * disable test random
This commit is contained in:
@@ -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 "
|
||||
|
||||
Reference in New Issue
Block a user