Skip to content

Commit 1727b3b

Browse files
committed
reenable type test
1 parent eb5089b commit 1727b3b

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

test/reactionsystem.jl

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -84,10 +84,9 @@ G2 = sf.g(u,p,t)
8484
# test with JumpSystem
8585
js = convert(JumpSystem, rs)
8686

87-
# slicing doesn't seem to work for ArrayPartitions
88-
# @test all(map(type -> type <: DiffEqJump.MassActionJump, typeof.(js.eqs[1:14])))
89-
# @test all(map(type -> type <: DiffEqJump.ConstantRateJump, typeof.(js.eqs[15:18])))
90-
# @test all(map(type -> type <: DiffEqJump.VariableRateJump, typeof.(js.eqs[19:20])))
87+
@test all(map(i -> typeof(js.eqs[i]) <: DiffEqJump.MassActionJump, 1:14))
88+
@test all(map(i -> typeof(js.eqs[i]) <: DiffEqJump.ConstantRateJump, 15:18))
89+
@test all(map(i -> typeof(js.eqs[i]) <: DiffEqJump.VariableRateJump, 19:20))
9190

9291
pars = rand(length(k)); u0 = rand(1:100,4); time = rand();
9392
jumps = Vector{Union{ConstantRateJump, MassActionJump, VariableRateJump}}(undef,length(js.eqs))

0 commit comments

Comments
 (0)