unittest module works again
This commit is contained in:
parent
383fbca27e
commit
5073914b86
6 changed files with 20 additions and 28 deletions
|
|
@ -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.} =
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue