Skip to content

Commit f57fe6d

Browse files
Add extraction test
1 parent 489f8ec commit f57fe6d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/system_construction.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,8 @@ eqs = [_x ~ y/C,
9191
D(x) ~ -A*x,
9292
D(y) ~ A*x - B*_x]
9393
de = DiffEqSystem(eqs,[t],[x,y],Variable[_x],[A,B,C])
94+
de2 = DiffEqSystem(eqs,[t])
95+
test_vars_extraction(de, de2)
9496
@test eval(ModelingToolkit.generate_ode_function(de))([0.0,0.0],[1.0,2.0],[1,2,3],0.0) -1/3
9597

9698
# Now nonlinear system with only variables

0 commit comments

Comments
 (0)