Skip to content

Commit

Permalink
Suppress/test warnings in test_smoke.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
tkf committed Jun 22, 2018
1 parent c2c34df commit 769d8b2
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion test/test_smoke.jl
Expand Up @@ -5,6 +5,7 @@ import GR # Workaround Plots.jl world age problem
using Plots

using Bifurcations
using Bifurcations: plot # TODO: stop doing this
using Bifurcations.Codim1: resolved_points, SpecialPoint
using Bifurcations.Examples: PROBLEMS
include("utils.jl")
Expand Down Expand Up @@ -37,12 +38,24 @@ end
@test_nothrow nullshow(plot(sol; include_points=true))

@test_nothrow nullshow(plot(solver))
@test_nothrow nullshow(plot(solver; include_points=true))
@test_nothrow nullshow(plot(solver; include_points=false))

for p in points
@test_nothrow nullshow(plot(p))
end
end
end

@testset "warn" begin
plot = Plots.plot
solver = init(Bifurcations.Examples.Calcium.prob)
solve!(solver)
sol = solver.sol

msg = "include_points = true"
@test_warn msg nullshow(plot(sol.sweeps[1]; include_points=true))
@test_warn msg nullshow(plot(sol; include_points=true))
@test_warn msg nullshow(plot(solver))
end

end # module

0 comments on commit 769d8b2

Please sign in to comment.