Skip to content

Commit

Permalink
add information to passing tests (JuliaLang#25483)
Browse files Browse the repository at this point in the history
  • Loading branch information
mmiller-max committed Jul 24, 2020
1 parent 3dc49ca commit acb4aed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions stdlib/Test/src/Test.jl
Original file line number Diff line number Diff line change
Expand Up @@ -505,7 +505,7 @@ function do_test(result::ExecutionResult, orig_expr)
value = result.value
testres = if isa(value, Bool)
# a true value Passes
value ? Pass(:test, nothing, nothing, value) :
value ? Pass(:test, orig_expr, result.data, value) :
Fail(:test, orig_expr, result.data, value, result.source)
else
# If the result is non-Boolean, this counts as an Error
Expand Down Expand Up @@ -590,7 +590,7 @@ function do_test_throws(result::ExecutionResult, orig_expr, extype)
end
end
if success
testres = Pass(:test_throws, nothing, nothing, exc)
testres = Pass(:test_throws, orig_expr, extype, exc)
else
testres = Fail(:test_throws_wrong, orig_expr, extype, exc, result.source)
end
Expand Down

0 comments on commit acb4aed

Please sign in to comment.