Skip to content

Commit 81596b4

Browse files
test: fix codegen test
1 parent 713a092 commit 81596b4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/code_generation.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ end
8989
end
9090
@mtkbuild sys = ODESystem([D(x) ~ y[1] + y[2], y ~ foo(x)], t)
9191
@test length(equations(sys)) == 1
92-
@test length(observed(sys)) == 3
92+
@test length(ModelingToolkit.observed(sys)) == 3
9393
prob = ODEProblem(sys, [x => 1.0], (0.0, 1.0), [foo => _tmp_fn2])
9494
val[] = 0
9595
@test_nowarn prob.f(prob.u0, prob.p, 0.0)
@@ -101,7 +101,7 @@ end
101101
@mtkbuild sys = ODESystem(
102102
[D(y) ~ foo(x), D(x) ~ sum(y), zeros(2) ~ foo(prod(z))], t)
103103
@test length(equations(sys)) == 5
104-
@test length(observed(sys)) == 0
104+
@test length(ModelingToolkit.observed(sys)) == 0
105105
prob = ODEProblem(
106106
sys, [y => ones(2), z => 2ones(2), x => 3.0], (0.0, 1.0), [foo => _tmp_fn2])
107107
val[] = 0

0 commit comments

Comments
 (0)