mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-19 05:50:30 +00:00
Merge pull request #3142 from avsej/fix-unittest
Remove access modifiers from inner templates
This commit is contained in:
@@ -63,10 +63,10 @@ proc shouldRun(testName: string): bool =
|
||||
|
||||
template suite*(name: expr, body: stmt): stmt {.immediate, dirty.} =
|
||||
block:
|
||||
template setup*(setupBody: stmt): stmt {.immediate, dirty.} =
|
||||
template setup(setupBody: stmt): stmt {.immediate, dirty.} =
|
||||
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
|
||||
|
||||
body
|
||||
|
||||
Reference in New Issue
Block a user