Skip to content

Commit 8d7e0d9

Browse files
committed
up
1 parent e8d349a commit 8d7e0d9

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

test/meta/mtk_structure_indexing.jl

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -358,32 +358,32 @@ let
358358
# Checks that updating an integrators parameter values does not affect mass action rate until after
359359
# `reset_aggregated_jumps!` have been applied as well (wt which point the correct rate is achieved).
360360
jint.ps[p1] = 4.0
361-
@test jint.cb.condition.ma_jumps.scaled_rates[1] != 8.0
361+
@test jint.cb.condition.ma_jumps.scaled_rates[1] == 6.0
362362
reset_aggregated_jumps!(jint)
363363
@test jint.cb.condition.ma_jumps.scaled_rates[1] == 8.0
364364

365365
jint.ps[rn.p1] = 5.0
366-
@test jint.cb.condition.ma_jumps.scaled_rates[1] != 10.0
366+
@test jint.cb.condition.ma_jumps.scaled_rates[1] == 8.0
367367
reset_aggregated_jumps!(jint)
368368
@test jint.cb.condition.ma_jumps.scaled_rates[1] == 10.0
369369

370370
jint.ps[:p1] = 6.0
371-
@test jint.cb.condition.ma_jumps.scaled_rates[1] != 12.0
371+
@test jint.cb.condition.ma_jumps.scaled_rates[1] == 10.0
372372
reset_aggregated_jumps!(jint)
373373
@test jint.cb.condition.ma_jumps.scaled_rates[1] == 12.0
374374

375375
setp(jint, p1)(jint, 7.0)
376-
@test jint.cb.condition.ma_jumps.scaled_rates[1] != 14.0
376+
@test jint.cb.condition.ma_jumps.scaled_rates[1] == 12.0
377377
reset_aggregated_jumps!(jint)
378378
@test jint.cb.condition.ma_jumps.scaled_rates[1] == 14.0
379379

380380
setp(jint, rn.p1)(jint, 8.0)
381-
@test jint.cb.condition.ma_jumps.scaled_rates[1] != 16.0
381+
@test jint.cb.condition.ma_jumps.scaled_rates[1] == 14.0
382382
reset_aggregated_jumps!(jint)
383383
@test jint.cb.condition.ma_jumps.scaled_rates[1] == 16.0
384384

385385
setp(jint, :p1)(jint, 3.0)
386-
@test jint.cb.condition.ma_jumps.scaled_rates[1] != 6.0
386+
@test jint.cb.condition.ma_jumps.scaled_rates[1] == 16.0
387387
reset_aggregated_jumps!(jint)
388388
@test jint.cb.condition.ma_jumps.scaled_rates[1] == 6.0
389389
end

test/runtests.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,10 @@ using SafeTestsets
3838
@time @safetestset "U0 and Parameters Input Variants" begin include("model_simulation/u0_n_parameter_inputs.jl") end
3939
@time @safetestset "SDE System Simulations" begin include("model_simulation/simulate_SDEs.jl") end
4040
@time @safetestset "Jump System Simulations" begin include("model_simulation/simulate_jumps.jl") end
41+
42+
### Upstream SciML and DiffEq tests. ###
43+
@time @safetestset "MTK Structure Indexing" begin include("meta/mtk_structure_indexing.jl") end
44+
@time @safetestset "MTK Problem Inputs" begin include("meta/mtk_problem_inputs.jl") end
4145

4246
### Tests Spatial Network Simulations. ###
4347
@time @safetestset "PDE Systems Simulations" begin include("spatial_reaction_systems/simulate_PDEs.jl") end
@@ -56,8 +60,4 @@ using SafeTestsets
5660
@time @safetestset "HomotopyContinuation Extension" begin include("extensions/homotopy_continuation.jl") end
5761
@time @safetestset "Structural Identifiability Extension" begin include("extensions/structural_identifiability.jl") end
5862

59-
### Upstream SciML and DiffEq tests. ###
60-
@time @safetestset "MTK Structure Indexing" begin include("meta/mtk_structure_indexing.jl") end
61-
@time @safetestset "MTK Problem Inputs" begin include("meta/mtk_problem_inputs.jl") end
62-
6363
end # @time

0 commit comments

Comments
 (0)