unittest module works again

This commit is contained in:
Araq 2014-01-18 00:58:59 +01:00
commit 5073914b86
6 changed files with 20 additions and 28 deletions

View file

@ -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.} =