Skip to content

Commit 2c4b595

Browse files
committed
Add inline variable parsing test as well
1 parent 083949f commit 2c4b595

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)