Skip to content

Commit 6b6ec80

Browse files
committed
Add tests
1 parent ecbfe8f commit 6b6ec80

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/bridge.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ end
2626

2727
@testset "Custom test" begin
2828
const model = MOIB.SplitInterval{Int}(SimpleModel{Int}())
29+
@test !MOIB.supportsbridgingconstraint(model, MOI.VectorAffineFunction{Float64}, MOI.Interval{Float64})
2930

3031
x, y = MOI.addvariables!(model, 2)
3132
@test MOI.get(model, MOI.NumberOfVariables()) == 2
@@ -94,6 +95,7 @@ MOIU.@model NoRSOCModel () (EqualTo, GreaterThan, LessThan, Interval) (Zeros, No
9495
# Test that RSOCtoPSD is used instead of RSOC+SOCtoPSD as it is a shortest path
9596
@testset "Bridge selection" begin
9697
MOI.empty!(bridgedmock)
98+
@test !(MOI.supportsconstraint(bridgedmock, MOI.VectorAffineFunction{Float64}, MOI.LogDetConeTriangle))
9799
x = MOI.addvariables!(bridgedmock, 3)
98100
c = MOI.addconstraint!(bridgedmock, MOI.VectorOfVariables(x), MOI.RotatedSecondOrderCone(3))
99101
@test MOIB.bridge(bridgedmock, c) isa MOIB.RSOCtoPSDCBridge

0 commit comments

Comments
 (0)