Skip to content

Commit 187c824

Browse files
committed
Fix test
1 parent 647d9d4 commit 187c824

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

test/odesystem.jl

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -899,5 +899,10 @@ eqs = [∂t(Q) ~ 1 / sin(P)
899899
sys = debug_system(sys);
900900
prob = ODEProblem(sys, [], (0, 1.0));
901901
du = zero(prob.u0);
902-
@test_throws "-cos(Q(t))" prob.f(du, [1, 0], prob.p, 0.0)
903-
@test_throws "sin(P(t))" prob.f(du, [0, 2], prob.p, 0.0)
902+
if VERSION < v"1.8"
903+
@test_throws DomainError prob.f(du, [1, 0], prob.p, 0.0)
904+
@test_throws DomainError prob.f(du, [0, 2], prob.p, 0.0)
905+
else
906+
@test_throws "-cos(Q(t))" prob.f(du, [1, 0], prob.p, 0.0)
907+
@test_throws "sin(P(t))" prob.f(du, [0, 2], prob.p, 0.0)
908+
end

0 commit comments

Comments
 (0)