Skip to content

Commit 3c941d2

Browse files
committed
Improve test coverage
1 parent 0c48139 commit 3c941d2

1 file changed

Lines changed: 15 additions & 1 deletion

File tree

test/plotting/test_plotting.jl

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,9 +215,23 @@ end
215215
end
216216

217217
if backend == "ControlPlots"
218+
body_aero_distributed = create_body_aero()
219+
n_panels = length(body_aero_distributed.panels)
220+
va_distribution = repeat([12.0 0.0 1.0], n_panels, 1)
221+
set_va!(body_aero_distributed, va_distribution)
222+
223+
@test body_aero_distributed.has_distributed_va
224+
fig = plot_geometry(
225+
body_aero_distributed,
226+
"Rectangular_wing_geometry_distributed_va";
227+
is_save=false,
228+
is_show=false,
229+
)
230+
@test fig !== nothing
231+
218232
literature_csv = joinpath(tempdir(), "polar_literature_aoa.csv")
219233
open(literature_csv, "w") do io
220-
write(io, "aoa,cl,cd,cs\n")
234+
write(io, "AOA,cl,cd,cs\n")
221235
write(io, "0.0,0.1,0.01,0.0\n")
222236
write(io, "5.0,0.5,0.02,0.01\n")
223237
write(io, "10.0,0.9,0.04,0.02\n")

0 commit comments

Comments
 (0)