diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2018-09-24 12:14:43 +0200 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2018-09-24 16:00:57 +0200 |
commit | 9364369c1f346b9b328274f495267488bfe30b63 (patch) | |
tree | 6c7ee33dcdac9f77b45280f364f8940a175a26de /tests/trmacros | |
parent | c38a608c9099e987a8be0149b5190a4fc2d5fb33 (diff) | |
download | Nim-9364369c1f346b9b328274f495267488bfe30b63.tar.gz |
make tests green again
Diffstat (limited to 'tests/trmacros')
-rw-r--r-- | tests/trmacros/tor.nim | 4 |
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 |