Skip to content

Commit 2e1ff39

Browse files
committed
Add tests
1 parent b0b7bd5 commit 2e1ff39

File tree

2 files changed

+17
-2
lines changed

2 files changed

+17
-2
lines changed

test/runtests.jl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,10 @@ cd("..")
2020
println("Running tests...")
2121

2222
@testset verbose = true "Testing VortexStepMethod..." begin
23-
24-
2523
if build_is_production_build
2624
include("bench.jl")
2725
end
26+
include("test_settings.jl")
2827
include("test_bound_filament.jl")
2928
include("test_panel.jl")
3029
include("test_semi_infinite_filament.jl")

test/test_settings.jl

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
using Pkg
2+
if ! ("Test" keys(Pkg.project().dependencies))
3+
using TestEnv; TestEnv.activate()
4+
end
5+
6+
using VortexStepMethod
7+
using Test
8+
9+
@testset "Test settings.jl" begin
10+
vss = vs("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+
end
16+
nothing

0 commit comments

Comments
 (0)