Merge pull request #3142 from avsej/fix-unittest
Remove access modifiers from inner templates
This commit is contained in:
commit
cd42d38887
1 changed files with 2 additions and 2 deletions
|
|
@ -63,10 +63,10 @@ proc shouldRun(testName: string): bool =
|
||||||
|
|
||||||
template suite*(name: expr, body: stmt): stmt {.immediate, dirty.} =
|
template suite*(name: expr, body: stmt): stmt {.immediate, dirty.} =
|
||||||
block:
|
block:
|
||||||
template setup*(setupBody: stmt): stmt {.immediate, dirty.} =
|
template setup(setupBody: stmt): stmt {.immediate, dirty.} =
|
||||||
template testSetupIMPL: stmt {.immediate, dirty.} = setupBody
|
template testSetupIMPL: stmt {.immediate, dirty.} = setupBody
|
||||||
|
|
||||||
template teardown*(teardownBody: stmt): stmt {.immediate, dirty.} =
|
template teardown(teardownBody: stmt): stmt {.immediate, dirty.} =
|
||||||
template testTeardownIMPL: stmt {.immediate, dirty.} = teardownBody
|
template testTeardownIMPL: stmt {.immediate, dirty.} = teardownBody
|
||||||
|
|
||||||
body
|
body
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue