Skip to content

Commit e4aef0c

Browse files
authored
Merge pull request SciML#1636 from SciML/myb/test
Add inline variable parsing test as well
2 parents c6dd0ed + 2c4b595 commit e4aef0c

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

test/variable_parsing.jl

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,13 @@ end
9292
@test getmetadata(x, VariableUnit) == u
9393
@test getmetadata(y, VariableDefaultValue) === 2
9494

95+
@variables x=[1, 2] [connect = Flow, unit = u] y=2
96+
97+
@test getmetadata(x, VariableDefaultValue) == [1, 2]
98+
@test getmetadata(x, VariableConnectType) == Flow
99+
@test getmetadata(x, VariableUnit) == u
100+
@test getmetadata(y, VariableDefaultValue) === 2
101+
95102
@variables begin
96103
x, [connect = Flow, unit = u]
97104
y = 2, [connect = Flow]

0 commit comments

Comments
 (0)