Skip to content

Commit d021b6f

Browse files
author
trigaut
committed
[UPD] Update tests with SDP errors catching
1 parent 54bee8e commit d021b6f

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

test/runtests.jl

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -484,6 +484,13 @@ facts("SDP algorithm") do
484484
end
485485

486486
context("Solve and simulate using SDP") do
487+
paramsSDP.infoStructure = "anything"
488+
@fact_throws solve_DP(modelSDP, paramsSDP, false);
489+
paramsSDP.infoStructure = infoStruct
490+
491+
paramsSDP.expectation_computation = "anything"
492+
@fact_throws solve_DP(modelSDP, paramsSDP, false);
493+
paramsSDP.expectation_computation = "Exact"
487494

488495
V_sdp = solve_DP(modelSDP, paramsSDP, false);
489496

0 commit comments

Comments
 (0)