summary refs log tree commit diff stats
path: root/tests/template
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2014-01-18 00:58:59 +0100
committerAraq <rumpf_a@web.de>2014-01-18 00:58:59 +0100
commit5073914b8697a9fd1dc38bebef434b50850f2861 (patch)
tree13fb2aaae8491773a0d0c04f3989b72e3efbecf5 /tests/template
parent383fbca27ef4f4e0b5eae0e0e02029fe644248ac (diff)
downloadNim-5073914b8697a9fd1dc38bebef434b50850f2861.tar.gz
unittest module works again
Diffstat (limited to 'tests/template')
-rw-r--r--tests/template/utemplates.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/template/utemplates.nim b/tests/template/utemplates.nim
index 68fbb23a6..38ad4f515 100644
--- a/tests/template/utemplates.nim
+++ b/tests/template/utemplates.nim
@@ -18,7 +18,7 @@ test "previous definitions can be further overloaded or hidden in local scopes":
   check t("test") == "string"
 
 test "templates can be redefined multiple times":
-  template customAssert(cond: bool, msg: string): stmt =
+  template customAssert(cond: bool, msg: string): stmt {.immediate, dirty.} =
     if not cond: fail(msg)
 
   template assertion_failed(body: stmt) {.immediate.} =