summary refs log tree commit diff stats
path: root/tests/trmacros
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2018-09-24 12:14:43 +0200
committerAndreas Rumpf <rumpf_a@web.de>2018-09-24 16:00:57 +0200
commit9364369c1f346b9b328274f495267488bfe30b63 (patch)
tree6c7ee33dcdac9f77b45280f364f8940a175a26de /tests/trmacros
parentc38a608c9099e987a8be0149b5190a4fc2d5fb33 (diff)
downloadNim-9364369c1f346b9b328274f495267488bfe30b63.tar.gz
make tests green again
Diffstat (limited to 'tests/trmacros')
-rw-r--r--tests/trmacros/tor.nim4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/trmacros/tor.nim b/tests/trmacros/tor.nim
index d698e928d..087dc0d68 100644
--- a/tests/trmacros/tor.nim
+++ b/tests/trmacros/tor.nim
@@ -1,11 +1,11 @@
 discard """
-  output: '''3030
+  output: '''0
 true
 3'''
 """
 
 template arithOps: untyped = (`+` | `-` | `*`)
-template testOr{ (arithOps{f})(a, b) }(a, b, f: untyped): untyped = f(a+1, b)
+template testOr{ (arithOps{f})(a, b) }(a, b, f: untyped): untyped = f(a mod 10, b)
 
 let xx = 10
 echo 10*xx
id='n140' href='#n140'>140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157