Skip to content

Commit

Permalink
remove showDiff (moved to another PR)
Browse files Browse the repository at this point in the history
  • Loading branch information
timotheecour committed Apr 29, 2021
1 parent ddc8267 commit c95d382
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions testament/testament.nim
Original file line number Diff line number Diff line change
Expand Up @@ -318,11 +318,10 @@ proc addResult(r: var TResults, test: TTest, target: TTarget,
# expected is empty, no reason to print it.
echo given
else:
# maybeStyledEcho fgYellow, "Expected:"
# maybeStyledEcho styleBright, expected, "\n"
# maybeStyledEcho fgYellow, "Gotten:"
# maybeStyledEcho styleBright, given, "\n"
showDiff(expected, given)
maybeStyledEcho fgYellow, "Expected:"
maybeStyledEcho styleBright, expected, "\n"
maybeStyledEcho fgYellow, "Gotten:"
maybeStyledEcho styleBright, given, "\n"

if backendLogging and (isAppVeyor or isAzure):
let (outcome, msg) =
Expand Down Expand Up @@ -391,8 +390,6 @@ proc nimoutCheck(expected, given: TSpec): bool =
result = true
if expected.nimoutFull:
if expected.nimout != given.nimout:
echo (expected.nimout,)
echo (given.nimout,)
result = false
elif expected.nimout.len > 0 and not greedyOrderedSubsetLines(expected.nimout, given.nimout):
result = false
Expand Down

0 comments on commit c95d382

Please sign in to comment.