Skip to content

Commit 8da0fde

Browse files
committed
#185, #186 added test_yaml_geometry
1 parent 29f372d commit 8da0fde

File tree

2 files changed

+393
-7
lines changed

2 files changed

+393
-7
lines changed

test/test_settings.jl

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,16 @@ using VortexStepMethod
77
using Test
88

99
@testset "Test settings.jl" begin
10-
vss = vs("ram_air_kite/vsm_settings_dual.yaml")
11-
@test vss isa VSMSettings
12-
@test vss.solver_settings isa SolverSettings
13-
@test vss.wings isa Vector{WingSettings}
14-
@test length(vss.wings) == 2
15-
io = IOBuffer(repr(vss))
16-
@test countlines(io) == 40 # Updated to match new output format
10+
# Change to project root directory for the test
11+
project_root = dirname(@__DIR__)
12+
cd(project_root) do
13+
vss = vs("ram_air_kite/vsm_settings_dual.yaml")
14+
@test vss isa VSMSettings
15+
@test vss.solver_settings isa SolverSettings
16+
@test vss.wings isa Vector{WingSettings}
17+
@test length(vss.wings) == 2
18+
io = IOBuffer(repr(vss))
19+
@test countlines(io) == 40 # Updated to match new output format
20+
end
1721
end
1822
nothing

0 commit comments

Comments
 (0)