summary refs log tree commit diff stats
path: root/tests/accept
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2011-11-02 02:28:18 +0100
committerAraq <rumpf_a@web.de>2011-11-02 02:28:18 +0100
commit1f6725e59e4afe1f803b47fb272bfe45a9b1fcea (patch)
treeb6455a26544febe05266b2f527ff472ea88ba0bf /tests/accept
parent84c473a8901f8ae8411bdfb9f5b90d8b27e1689f (diff)
downloadNim-1f6725e59e4afe1f803b47fb272bfe45a9b1fcea.tar.gz
small bugfixes to make more tests green
Diffstat (limited to 'tests/accept')
-rwxr-xr-xtests/accept/run/mbind3.nim3
-rwxr-xr-xtests/accept/run/tbind1.nim3
-rw-r--r--tests/accept/run/tunidecode.nim4
3 files changed, 7 insertions, 3 deletions
diff --git a/tests/accept/run/mbind3.nim b/tests/accept/run/mbind3.nim
index 586222eb8..d02bc79d0 100755
--- a/tests/accept/run/mbind3.nim
+++ b/tests/accept/run/mbind3.nim
@@ -3,7 +3,8 @@ var
   lastId = 0
 
 template genId*: expr =
-  inc(bind lastId)
+  bind lastId
+  inc(lastId)
   lastId
 
 
diff --git a/tests/accept/run/tbind1.nim b/tests/accept/run/tbind1.nim
index 536a67f91..6593b2307 100755
--- a/tests/accept/run/tbind1.nim
+++ b/tests/accept/run/tbind1.nim
@@ -7,7 +7,8 @@ discard """
 proc p1(x: int8, y: int): int = return x + y
 
 template tempBind(x, y: expr): expr = 
-  bind p1(x, y) 
+  bind p1
+  p1(x, y) 
 
 proc p1(x: int, y: int8): int = return x - y
 
diff --git a/tests/accept/run/tunidecode.nim b/tests/accept/run/tunidecode.nim
index 92308e1fc..4c074b391 100644
--- a/tests/accept/run/tunidecode.nim
+++ b/tests/accept/run/tunidecode.nim
@@ -5,6 +5,8 @@ discard """
 
 import unidecode
 
-assert unidecode("\\x53\\x17\\x4E\\xB0") == "Bei Jing"
+loadUnidecodeTable("lib/pure/unidecode/unidecode.dat")
+
+assert unidecode("\x53\x17\x4E\xB0") == "Bei Jing"
 echo unidecode("Äußerst")