Skip to content

Commit 858c0fb

Browse files
committed
add information to passing tests (#25483)
1 parent 84ef118 commit 858c0fb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

stdlib/Test/src/Test.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -505,7 +505,7 @@ function do_test(result::ExecutionResult, orig_expr)
505505
value = result.value
506506
testres = if isa(value, Bool)
507507
# a true value Passes
508-
value ? Pass(:test, nothing, nothing, value) :
508+
value ? Pass(:test, orig_expr, result.data, value) :
509509
Fail(:test, orig_expr, result.data, value, result.source)
510510
else
511511
# If the result is non-Boolean, this counts as an Error
@@ -590,7 +590,7 @@ function do_test_throws(result::ExecutionResult, orig_expr, extype)
590590
end
591591
end
592592
if success
593-
testres = Pass(:test_throws, nothing, nothing, exc)
593+
testres = Pass(:test_throws, orig_expr, extype, exc)
594594
else
595595
testres = Fail(:test_throws_wrong, orig_expr, extype, exc, result.source)
596596
end

0 commit comments

Comments
 (0)