Skip to content

Commit 89fcdf3

Browse files
committed
test up
1 parent 38c2869 commit 89fcdf3

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

test/spatial_reaction_systems/lattice_reaction_systems_jumps.jl

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -87,19 +87,17 @@ let
8787
jprob = JumpProblem(lrs, dprob, NSM())
8888
@test jprob.prob.u0 == true_u0
8989
@test jprob.discrete_jump_aggregation.hop_rates.hop_const_cumulative_sums == true_hopping_rates
90-
@test jprob.massaction_jump.scaled_rates == true_maj_scaled_rates
9190
@test jprob.massaction_jump.reactant_stoch == true_maj_reactant_stoch
92-
@test jprob.massaction_jump.net_stoch == true_maj_net_stoch
91+
@test all(issetequal(ns1, ns2) for (ns1, ns2) in zip(jprob.massaction_jump.net_stoch, true_maj_net_stoch))
9392
end
9493
# Provides parameters as a combined vector.
9594
for pV in [pV_1], pE in [pE_1, pE_2]
9695
dprob = DiscreteProblem(lrs, u0, (0.0, 100.0), [pE; pV])
9796
jprob = JumpProblem(lrs, dprob, NSM())
9897
@test jprob.prob.u0 == true_u0
9998
@test jprob.discrete_jump_aggregation.hop_rates.hop_const_cumulative_sums == true_hopping_rates
100-
@test jprob.massaction_jump.scaled_rates == true_maj_scaled_rates
10199
@test jprob.massaction_jump.reactant_stoch == true_maj_reactant_stoch
102-
@test jprob.massaction_jump.net_stoch == true_maj_net_stoch
100+
@test all(issetequal(ns1, ns2) for (ns1, ns2) in zip(jprob.massaction_jump.net_stoch, true_maj_net_stoch))
103101
end
104102
end
105103
end

0 commit comments

Comments
 (0)