Skip to content

Commit

Permalink
Render plots in test_smoke.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
tkf committed Jun 19, 2018
1 parent bba809b commit 36d2446
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions REQUIRE
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
julia 0.6
Compat
DiffEqBase
ForwardDiff
Parameters
Expand Down
8 changes: 7 additions & 1 deletion test/test_smoke.jl
Original file line number Diff line number Diff line change
@@ -1,14 +1,20 @@
module TestSmoke
using Compat
using Base.Test
using Plots
using Bifurcations
using Bifurcations.Examples: PROBLEMS
include("utils.jl")

function nullshow(plt)
show(devnull, MIME("image/png"), plt)
end

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

Expand Down

0 comments on commit 36d2446

Please sign in to comment.