Skip to content

Commit

Permalink
Merge pull request JuliaIO#147 from JuliaLang/kms/allowed_failure_pri…
Browse files Browse the repository at this point in the history
…nting

Make it more obvious that allowed failures are allowed
  • Loading branch information
kmsquire committed May 30, 2016
2 parents b2b6026 + edfa0ae commit 6df70b0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/json-checker.jl
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@ for i in 1:33
try
JSON.parsefile(filepath)

print_with_color(:red, " [Fail] ")
print_with_color(:red, " [Fail (Allowed)] ")
println("Test $file parsed successfully; should throw ErrorException.")
catch ex
if isa(ex, ErrorException)
print_with_color(:green, " [Pass] ")
println("Test $file now fails as expected.")
println("It can be removed from ALLOWED_CHECK_FAILURES now.")
else
print_with_color(:red, " [Fail] ")
print_with_color(:red, " [Fail (Allowed)] ")
println("Test $file throws unexpected error; should throw ErrorException:")
println(ex)
end
Expand Down

0 comments on commit 6df70b0

Please sign in to comment.