make more tests green
This commit is contained in:
parent
dae5450947
commit
7f49364fd0
16 changed files with 39 additions and 102 deletions
|
|
@ -504,7 +504,7 @@ template test*(name, body) {.dirty.} =
|
|||
if testStatusIMPL == FAILED:
|
||||
programResult += 1
|
||||
let testResult = TestResult(
|
||||
suiteName: when declared(testSuiteName): testSuiteName else: nil,
|
||||
suiteName: when declared(testSuiteName): testSuiteName else: "",
|
||||
testName: name,
|
||||
status: testStatusIMPL
|
||||
)
|
||||
|
|
@ -552,7 +552,7 @@ template fail* =
|
|||
when declared(stackTrace):
|
||||
formatter.failureOccurred(checkpoints, stackTrace)
|
||||
else:
|
||||
formatter.failureOccurred(checkpoints, nil)
|
||||
formatter.failureOccurred(checkpoints, "")
|
||||
|
||||
when not defined(ECMAScript):
|
||||
if abortOnError: quit(programResult)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue