Skip to content

Commit b5cfedb

Browse files
test: make hack tests more consistent
1 parent bc0239c commit b5cfedb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/structural_transformation/utils.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ end
7777
@test length(equations(sys)) == 1
7878
@test length(observed(sys)) == 3
7979
prob = ODEProblem(sys, [x => 1.0], (0.0, 1.0), [foo => _tmp_fn2])
80+
val[] = 0
8081
@test_nowarn prob.f(prob.u0, prob.p, 0.0)
8182
@test val[] == 1
8283

@@ -97,6 +98,7 @@ end
9798
@test length(observed(sys)) == 2
9899
prob = ODEProblem(
99100
sys, [y => ones(2), z => 2ones(2), x => 3.0], (0.0, 1.0), [foo => _tmp_fn2])
101+
val[] = 0
100102
@test_nowarn prob.f(prob.u0, prob.p, 0.0)
101103
@test val[] == 2
102104

0 commit comments

Comments
 (0)