summary refs log tree commit diff stats
path: root/tests/stdlib/tunidecode.nim
diff options
context:
space:
mode:
authorMiguel <leu-gim@moy-server.ru>2014-01-26 05:37:18 +0400
committerMiguel <leu-gim@moy-server.ru>2014-01-26 05:37:18 +0400
commita8b4e3c764dd967e1ac90305a574c4cd5e0d019b (patch)
tree9165419d8557b493bf65a3de04f248ae6f2288b9 /tests/stdlib/tunidecode.nim
parent4396270fc7c447fa7ce9478a6bf9682ba7c496a7 (diff)
parent5d712e0d3f9f5b8e486720c8bedd749656b527d8 (diff)
downloadNim-a8b4e3c764dd967e1ac90305a574c4cd5e0d019b.tar.gz
Merge branch 'devel' of git://github.com/Araq/Nimrod
Diffstat (limited to 'tests/stdlib/tunidecode.nim')
-rw-r--r--tests/stdlib/tunidecode.nim12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/stdlib/tunidecode.nim b/tests/stdlib/tunidecode.nim
new file mode 100644
index 000000000..cb6589d60
--- /dev/null
+++ b/tests/stdlib/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")
+