Skip to content

Commit 6bc1db4

Browse files
committed
Improve tests
1 parent 7f64827 commit 6bc1db4

1 file changed

Lines changed: 25 additions & 0 deletions

File tree

test/plotting/test_plotting.jl

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,5 +213,30 @@ end
213213
else
214214
@test fig !== nothing
215215
end
216+
217+
if backend == "ControlPlots"
218+
literature_csv = joinpath(tempdir(), "polar_literature_aoa.csv")
219+
open(literature_csv, "w") do io
220+
write(io, "aoa,cl,cd,cs\n")
221+
write(io, "0.0,0.1,0.01,0.0\n")
222+
write(io, "5.0,0.5,0.02,0.01\n")
223+
write(io, "10.0,0.9,0.04,0.02\n")
224+
end
225+
226+
try
227+
fig = plot_polars(
228+
Solver[],
229+
BodyAerodynamics[],
230+
["Literature"],
231+
literature_path_list=[literature_csv],
232+
title="Literature AOA Header",
233+
is_save=false,
234+
is_show=false,
235+
)
236+
@test fig !== nothing
237+
finally
238+
safe_rm(literature_csv)
239+
end
240+
end
216241
end
217242
nothing

0 commit comments

Comments
 (0)