Skip to content

Commit

Permalink
Refactor test_smoke.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
tkf committed Jun 21, 2018
1 parent 2e1ab15 commit 296ed83
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions test/test_smoke.jl
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ function nullshow(plt::Plots.Plot)
nullshow(MIME("image/png"), plt)
end

for prob in PROBLEMS
@testset "smoke PROBLEMS[$i]" for (i, prob) in enumerate(PROBLEMS)
solver = init(prob)
solve!(solver)
points = resolved_points(solver)
Expand All @@ -27,13 +27,13 @@ for prob in PROBLEMS
end
end
end
end

for prob in PROBLEMS
@test_nothrow begin
sol = solve(prob)
plt = plot(sol)
nullshow(plt)
@testset "plot" begin
@test_nothrow begin
sol = solve(prob)
plt = plot(sol)
nullshow(plt)
end
end
end

Expand Down

0 comments on commit 296ed83

Please sign in to comment.