made tests green again
This commit is contained in:
parent
1d14cb1ad8
commit
b56df72a32
11 changed files with 16 additions and 8 deletions
|
|
@ -154,6 +154,7 @@ template require*(conditions: stmt): stmt {.dirty.} =
|
|||
check conditions
|
||||
|
||||
macro expect*(exp: stmt): stmt =
|
||||
let exp = callsite()
|
||||
template expectBody(errorTypes, lineInfoLit: expr,
|
||||
body: stmt): PNimrodNode {.dirty.} =
|
||||
try:
|
||||
|
|
|
|||
|
|
@ -258,7 +258,7 @@ proc xmlConstructor(e: PNimrodNode): PNimrodNode {.compileTime.} =
|
|||
else:
|
||||
result = newCall("newXmlTree", toStrLit(a))
|
||||
|
||||
macro `<>`*(x: expr): expr =
|
||||
macro `<>`*(x: expr): expr {.immediate.} =
|
||||
## Constructor macro for XML. Example usage:
|
||||
##
|
||||
## .. code-block:: nimrod
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue