diff options
author | Araq <rumpf_a@web.de> | 2011-11-02 02:28:18 +0100 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2011-11-02 02:28:18 +0100 |
commit | 1f6725e59e4afe1f803b47fb272bfe45a9b1fcea (patch) | |
tree | b6455a26544febe05266b2f527ff472ea88ba0bf /tests/accept | |
parent | 84c473a8901f8ae8411bdfb9f5b90d8b27e1689f (diff) | |
download | Nim-1f6725e59e4afe1f803b47fb272bfe45a9b1fcea.tar.gz |
small bugfixes to make more tests green
Diffstat (limited to 'tests/accept')
-rwxr-xr-x | tests/accept/run/mbind3.nim | 3 | ||||
-rwxr-xr-x | tests/accept/run/tbind1.nim | 3 | ||||
-rw-r--r-- | tests/accept/run/tunidecode.nim | 4 |
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") |