make more tests green

This commit is contained in:
Andreas Rumpf 2018-08-13 12:29:03 +02:00
commit 7f49364fd0
16 changed files with 39 additions and 102 deletions

View file

@ -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)