Skip to content

Commit db13f03

Browse files
committed
Update test for new functionality
Values with units must provide units when supplied.
1 parent 8b0733a commit db13f03

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

test/model_parsing.jl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,9 @@ end
5353
end
5454
end
5555

56-
@named p = Pin(; v = π)
57-
@test getdefault(p.v) == π
56+
@named p = Pin(; v = π * u"V")
57+
58+
@test getdefault(p.v) π
5859
@test Pin.isconnector == true
5960

6061
@mtkmodel OnePort begin

0 commit comments

Comments
 (0)