Skip to content

Commit 8ef7908

Browse files
test: fix input_output_handling and odesystem tests
1 parent 677925b commit 8ef7908

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/input_output_handling.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ end
2020
@named sys = ODESystem([D(x) ~ -x + u], t) # both u and x are unbound
2121
@named sys1 = ODESystem([D(x) ~ -x + v[1] + v[2]], t) # both v and x are unbound
2222
@named sys2 = ODESystem([D(x) ~ -sys.x], t, systems = [sys]) # this binds sys.x in the context of sys2, sys2.x is still unbound
23-
@named sys21 = ODESystem([D(x) ~ -sys.x], t, systems = [sys1]) # this binds sys.x in the context of sys2, sys2.x is still unbound
23+
@named sys21 = ODESystem([D(x) ~ -sys1.x], t, systems = [sys1]) # this binds sys.x in the context of sys2, sys2.x is still unbound
2424
@named sys3 = ODESystem([D(x) ~ -sys.x + sys.u], t, systems = [sys]) # This binds both sys.x and sys.u
25-
@named sys31 = ODESystem([D(x) ~ -sys.x + sys1.v[1]], t, systems = [sys1]) # This binds both sys.x and sys1.v[1]
25+
@named sys31 = ODESystem([D(x) ~ -sys1.x + sys1.v[1]], t, systems = [sys1]) # This binds both sys.x and sys1.v[1]
2626

2727
@named sys4 = ODESystem([D(x) ~ -sys.x, u ~ sys.u], t, systems = [sys]) # This binds both sys.x and sys3.u, this system is one layer deeper than the previous. u is directly forwarded to sys.u, and in this case sys.u is bound while u is not
2828

@@ -43,7 +43,7 @@ end
4343
@test is_bound(sys2, sys.x)
4444
@test !is_bound(sys2, sys.u)
4545
@test !is_bound(sys2, sys2.sys.u)
46-
@test is_bound(sys21, sys.x)
46+
@test is_bound(sys21, sys1.x)
4747
@test !is_bound(sys21, sys1.v[1])
4848
@test !is_bound(sys21, sys1.v[2])
4949
@test is_bound(sys31, sys1.v[1])

0 commit comments

Comments
 (0)