From 769d8b2e53f300a4b1e73675c49bf2c87d068ebb Mon Sep 17 00:00:00 2001 From: Takafumi Arakaki Date: Thu, 21 Jun 2018 19:20:13 -0700 Subject: [PATCH] Suppress/test warnings in test_smoke.jl --- test/test_smoke.jl | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/test/test_smoke.jl b/test/test_smoke.jl index 107534e..fc934a7 100644 --- a/test/test_smoke.jl +++ b/test/test_smoke.jl @@ -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") @@ -37,7 +38,7 @@ 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)) @@ -45,4 +46,16 @@ 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