Skip to content

Commit

Permalink
Add test for invalid sense in SDP constraint
Browse files Browse the repository at this point in the history
  • Loading branch information
blegat committed Jun 3, 2018
1 parent 2f14369 commit 2da7f5b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/constraint.jl
Expand Up @@ -201,6 +201,8 @@ function constraints_test(ModelType::Type{<:JuMP.AbstractModel}, VariableRefType
# Should throw "ERROR: function JuMP.addconstraint does not accept keyword arguments"
# This tests that the keyword arguments are passed to addconstraint
@test_macro_throws ErrorException @SDconstraint(m, [x 1; 1 -y] [1 x; x -2], unknown_kw=1)
# Invalid sense == in SDP constraint
@test_macro_throws ErrorException @SDconstraint(m, [x 1; 1 -y] == [1 x; x -2])
end

@testset "Nonsensical SDPs" begin
Expand Down

0 comments on commit 2da7f5b

Please sign in to comment.