Skip to content

Commit e6ff871

Browse files
committed
Consistent titles for passing and failing tests
1 parent 26c414f commit e6ff871

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

src/FactCheck.jl

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -120,15 +120,9 @@ function Base.show(io::IO, e::Error)
120120
end
121121

122122
function Base.show(io::IO, s::Success)
123-
if s.rhs == :fact_throws_error
124-
println(io, "\n<IT::>", replace_lf(s.meta.msg != nothing ? "$(s.meta.msg)" : "Throws Error"))
125-
println(io, "\n<PASSED::>Test Passed")
126-
println(io, "\n<COMPLETEDIN::>")
127-
else
128-
println(io, "\n<IT::>", replace_lf(format_fact(s.expr)))
129-
println(io, "\n<PASSED::>Test Passed")
130-
println(io, "\n<COMPLETEDIN::>")
131-
end
123+
println(io, "\n<IT::>", replace_lf(format_fact(s.expr)))
124+
println(io, "\n<PASSED::>Test Passed")
125+
println(io, "\n<COMPLETEDIN::>")
132126
end
133127

134128
function Base.show(io::IO, ::Pending)

0 commit comments

Comments
 (0)