From 9364369c1f346b9b328274f495267488bfe30b63 Mon Sep 17 00:00:00 2001 From: Andreas Rumpf Date: Mon, 24 Sep 2018 12:14:43 +0200 Subject: make tests green again --- tests/trmacros/tor.nim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/trmacros') 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 -- cgit 1.4.1-2-gfad0