Skip to content

Commit

Permalink
Added coverage for showerror of DPException
Browse files Browse the repository at this point in the history
  • Loading branch information
johnzl-777 committed Jan 11, 2024
1 parent 7804c46 commit db4e562
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions test/show.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit db4e562

Please sign in to comment.