Skip to content

Commit 2c2a52e

Browse files
Fix error test
1 parent dacf0c8 commit 2c2a52e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

test/downstream/solve_error_handling.jl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,10 @@ prob = ODEProblem{false}(f, 1.0 + im, tspan)
2828
prob = ODEProblem{false}(f, u0, (nothing, nothing))
2929
@test_throws DiffEqBase.NoTspanError solve(prob, Tsit5())
3030

31-
prob = ODEProblem{false}(f, u0, (nothing, nothing))
31+
prob = ODEProblem{false}(f, u0, (NaN, 1.0))
32+
@test_throws DiffEqBase.NaNTspanError solve(prob, Tsit5())
33+
34+
prob = ODEProblem{false}(f, u0, (1.0, NaN))
3235
@test_throws DiffEqBase.NaNTspanError solve(prob, Tsit5())
3336

3437
prob = ODEProblem{false}(f, Any[1.0, 1.0f0], tspan)

0 commit comments

Comments
 (0)