Wrap all suite in a proc to avoid polluting globals
This commit is contained in:
parent
926d1c546e
commit
e9ff9617df
|
@ -73,8 +73,11 @@ proc summarizeLongTests*(name: string) =
|
||||||
template suiteReport*(name, body) =
|
template suiteReport*(name, body) =
|
||||||
last = name
|
last = name
|
||||||
status[last] = initOrderedTable[string, Status]()
|
status[last] = initOrderedTable[string, Status]()
|
||||||
suite name:
|
block: # namespacing
|
||||||
body
|
proc runSuite() =
|
||||||
|
suite name:
|
||||||
|
body
|
||||||
|
runSuite()
|
||||||
|
|
||||||
template timedTest*(name, body) =
|
template timedTest*(name, body) =
|
||||||
var f: float
|
var f: float
|
||||||
|
|
Loading…
Reference in New Issue