Skip to content

Commit 4c96263

Browse files
committed
update tests
1 parent 09e619b commit 4c96263

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

test/dynamic_vsp_plots.jl

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,19 @@
1313
fig1 = DVSP.plot_instancee(env)
1414
@test fig1 isa Plots.Plot
1515

16-
# Test with anticipative solution and plot_epochs (like in the script)
1716
instance = dataset[1].instance
1817
scenario = generate_scenario(b, instance; seed=0)
1918
v, y = generate_anticipative_solution(b, env, scenario; nb_epochs=3, reset_env=true)
2019

2120
fig2 = DVSP.plot_epochs(y)
2221
@test fig2 isa Plots.Plot
2322

23+
policies = generate_policies(b)
24+
lazy = policies[1]
25+
_, d = evaluate_policy!(lazy, env)
26+
fig3 = DVSP.plot_routes(d[1].instance, d[1].y_true)
27+
@test fig3 isa Plots.Plot
28+
2429
# Test animation
2530
temp_filename = tempname() * ".gif"
2631
try

0 commit comments

Comments
 (0)