From db4e562cd55100bdff0155183bf53a5c4ee496c4 Mon Sep 17 00:00:00 2001 From: John Long Date: Thu, 11 Jan 2024 13:15:16 -0500 Subject: [PATCH] Added coverage for showerror of DPException --- test/show.jl | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/test/show.jl b/test/show.jl index 92f75f6..c44ed6f 100644 --- a/test/show.jl +++ b/test/show.jl @@ -57,4 +57,21 @@ end show(stdout, MIME"text/plain"(), report) +end + +@testset "DPException" begin + + # generate a healthy report but encapsulate it inside a DPException + + solver = DP5Solver( + stiff_fcn, + 0.0, + [0.0001] + ) + + report = DormandPrince.integrate_core!(solver, 2/0.0001) + + dp_exception = DormandPrince.DPException(report) + + showerror(stdout, dp_exception) end \ No newline at end of file