Skip to content

Commit 7d5f8b9

Browse files
author
Brad Carman
committed
fixed test
1 parent 0e43547 commit 7d5f8b9

File tree

1 file changed

+12
-8
lines changed

1 file changed

+12
-8
lines changed

test/runtests.jl

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -50,14 +50,18 @@ end
5050

5151
path = joinpath(@__DIR__, "designs");
5252

53-
fixed_volume_icon = lowercase(
54-
abspath(
55-
raw"icons\ModelingToolkitStandardLibrary\Hydraulic\IsothermalCompressible\FixedVolume.png",
56-
),
57-
)
58-
59-
@test lowercase(abspath(ModelingToolkitDesigner.find_icon(sys.vol, path))) ==
60-
fixed_volume_icon
53+
fixed_volume_icon_ans =
54+
raw"icons\ModelingToolkitStandardLibrary\Hydraulic\IsothermalCompressible\FixedVolume.png"
55+
fixed_volume_icon_ans = abspath(fixed_volume_icon_ans)
56+
fixed_volume_icon_ans = normpath(fixed_volume_icon_ans)
57+
fixed_volume_icon_ans = lowercase(fixed_volume_icon_ans)
58+
59+
fixed_volume_icon = ModelingToolkitDesigner.find_icon(sys.vol, path)
60+
fixed_volume_icon = abspath(fixed_volume_icon)
61+
fixed_volume_icon = normpath(fixed_volume_icon)
62+
fixed_volume_icon = lowercase(fixed_volume_icon)
63+
64+
@test fixed_volume_icon == fixed_volume_icon_ans
6165

6266

6367
design = ODESystemDesign(sys, path);

0 commit comments

Comments
 (0)