mirror of
https://github.com/nim-lang/Nim.git
synced 2026-01-02 11:12:37 +00:00
fix the handling of "msg" tests
This commit is contained in:
@@ -114,7 +114,11 @@ proc parseSpec*(filename: string): TSpec =
|
||||
result.substr = true
|
||||
of "exitcode":
|
||||
discard parseInt(e.value, result.exitCode)
|
||||
of "errormsg", "msg":
|
||||
of "msg":
|
||||
result.msg = e.value
|
||||
if result.action != actionRun:
|
||||
result.action = actionCompile
|
||||
of "errormsg":
|
||||
result.msg = e.value
|
||||
result.action = actionReject
|
||||
of "disabled":
|
||||
|
||||
@@ -110,7 +110,7 @@ proc addResult(r: var TResults, test: TTest,
|
||||
given = given)
|
||||
r.data.addf("$#\t$#\t$#\t$#", name, expected, given, $success)
|
||||
if success notin {reSuccess, reIgnored}:
|
||||
styledEcho styleBright, fgRed, "^^^ [", $success, "]"
|
||||
styledEcho styleBright, name, fgRed, " [", $success, "]"
|
||||
styledEcho styleDim, "EXPECTED:"
|
||||
echo expected
|
||||
styledEcho styleDim, "GIVEN:"
|
||||
|
||||
Reference in New Issue
Block a user