Skip to content

Commit 38a6f54

Browse files
committed
Add test
1 parent 024f113 commit 38a6f54

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

test/odesystem.jl

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -746,3 +746,12 @@ let
746746
@named sys = ODESystem(eqs, t, vars, pars)
747747
@test_throws ModelingToolkit.ExtraEquationsSystemException structural_simplify(sys)
748748
end
749+
750+
# 1561
751+
let
752+
vars = @variables x y
753+
arr = ModelingToolkit.varmap_to_vars([x => 0.0, y => [0.0, 1.0]], vars) #error
754+
sol = Union{Float64, Vector{Float64}}[0.0, [0.0, 1.0]]
755+
@test arr == sol
756+
@test typeof(arr) == typeof(sol)
757+
end

0 commit comments

Comments
 (0)