summary refs log tree commit diff stats
path: root/tests/run/tunidecode.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/run/tunidecode.nim')
-rw-r--r--tests/run/tunidecode.nim12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/run/tunidecode.nim b/tests/run/tunidecode.nim
new file mode 100644
index 000000000..4c074b391
--- /dev/null
+++ b/tests/run/tunidecode.nim
@@ -0,0 +1,12 @@
+discard """
+  cmd: "nimrod cc --hints:on -d:embedUnidecodeTable $# $#"
+  output: "Ausserst"
+"""
+
+import unidecode
+
+loadUnidecodeTable("lib/pure/unidecode/unidecode.dat")
+
+assert unidecode("\x53\x17\x4E\xB0") == "Bei Jing"
+echo unidecode("Äußerst")
+