Removed extra line breaks from unittest output.
This commit is contained in:
parent
e6245674f2
commit
0e65d786d5
1 changed files with 9 additions and 9 deletions
|
|
@ -61,11 +61,11 @@ proc testDone(name: string, s: TestStatus) =
|
||||||
programResult += 1
|
programResult += 1
|
||||||
|
|
||||||
if outputLevel != PRINT_NONE and (outputLevel == PRINT_ALL or s == FAILED):
|
if outputLevel != PRINT_NONE and (outputLevel == PRINT_ALL or s == FAILED):
|
||||||
template rawPrint() = echo("[", $s, "] ", name, "\n")
|
template rawPrint() = echo("[", $s, "] ", name)
|
||||||
when not defined(ECMAScript):
|
when not defined(ECMAScript):
|
||||||
if colorOutput and not defined(ECMAScript):
|
if colorOutput and not defined(ECMAScript):
|
||||||
var color = (if s == OK: fgGreen else: fgRed)
|
var color = (if s == OK: fgGreen else: fgRed)
|
||||||
styledEcho styleBright, color, "[", $s, "] ", fgWhite, name, "\n"
|
styledEcho styleBright, color, "[", $s, "] ", fgWhite, name
|
||||||
else:
|
else:
|
||||||
rawPrint()
|
rawPrint()
|
||||||
else:
|
else:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue