Skip to content

Commit c5b7a63

Browse files
test: add JumpProblem to initialization test
1 parent 9a78fe6 commit c5b7a63

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

test/initializationsystem.jl

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
using ModelingToolkit, OrdinaryDiffEq, NonlinearSolve, Test
2-
using StochasticDiffEq, DelayDiffEq, StochasticDelayDiffEq
2+
using StochasticDiffEq, DelayDiffEq, StochasticDelayDiffEq, JumpProcesses
33
using ForwardDiff
44
using SymbolicIndexingInterface, SciMLStructures
55
using SciMLStructures: Tunable
@@ -1326,4 +1326,9 @@ end
13261326
sol = solve(dprob, FunctionMap())
13271327
@test sol[S, 1] 999
13281328
@test SciMLBase.successful_retcode(sol)
1329+
1330+
jprob = JumpProblem(js, dprob)
1331+
sol = solve(jprob, SSAStepper())
1332+
@test sol[S, 1] 999
1333+
@test SciMLBase.successful_retcode(sol)
13291334
end

0 commit comments

Comments
 (0)