Skip to content

Commit 8bb535f

Browse files
committed
Fix tests
1 parent 701b3ed commit 8bb535f

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

test/components.jl

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ function first_model(;name)
7474
pars = @parameters x=2 y=20
7575
compose(ODESystem(Equation[], t, [], pars; name, defaults=defs), foo)
7676
end
77-
@named foo = first_model()
78-
@test ModelingToolkit.defaults(foo)[foo.a] == 3
79-
@test ModelingToolkit.defaults(foo)[foo.b] == 300
77+
@named goo = first_model()
78+
@unpack foo = goo
79+
@test ModelingToolkit.defaults(goo)[foo.a] == 3
80+
@test ModelingToolkit.defaults(goo)[foo.b] == 300

0 commit comments

Comments
 (0)