Skip to content

Commit c161b11

Browse files
test: test incomplete and non-split systems
1 parent 0bbf1e1 commit c161b11

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/parameter_dependencies.jl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,10 @@ end
194194
sys3_tunables = ModelingToolkit.tunable_parameters(sys3, ModelingToolkit.parameters(sys3))
195195
@test length(sys3_tunables) == 0
196196

197+
sys_incomplete = pendulum_sys
198+
@test_throws ArgumentError ModelingToolkit.subset_tunables(sys_incomplete, new_tunables)
199+
sys_nonsplit = mtkcompile(pendulum_sys; split = false)
200+
@test_throws ArgumentError ModelingToolkit.subset_tunables(sys_nonsplit, new_tunables)
197201
end
198202

199203
struct CallableFoo

0 commit comments

Comments
 (0)