Skip to content

Commit bf0e158

Browse files
authored
Include qcqp.jl in tests (#116)
1 parent f96a40b commit bf0e158

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

test/qcqp.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ function test_no_monomials(x, y, T)
150150
return PolyJuMP.QCQP.Optimizer{T}(MOI.Utilities.MockOptimizer(inner))
151151
end
152152
PolyJuMP.@variable(model, 0 <= x[1:2] <= 1)
153-
PolyJuMP.@constraint(model, x[1] * x[2] == 0.5)
153+
PolyJuMP.@constraint(model, x[1] * x[2] == T(1))
154154
PolyJuMP.@objective(model, Min, sum(x))
155155
PolyJuMP.optimize!(model)
156156
@test MOI.get(inner, MOI.NumberOfVariables()) == 2
@@ -209,7 +209,7 @@ function test_scalar_nonlinear_function(x, y, T)
209209
PolyJuMP.@expression(model, g, x^2)
210210
PolyJuMP.@constraint(model, f * g == 0)
211211
PolyJuMP.optimize!(model)
212-
F, S = ScalarQuadraticFunction{T}, EqualTo{T}
212+
F, S = MOI.ScalarQuadraticFunction{T}, MOI.EqualTo{T}
213213
@test MOI.get(inner, MOI.NumberOfConstraints{F,S}()) == 2
214214
@test MOI.get(inner, MOI.NumberOfVariables()) == 2
215215
return

test/runtests.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@ include("Mock/mock_tests.jl")
77

88
include("kkt.jl")
99
include("sage.jl")
10+
include("qcqp.jl")

0 commit comments

Comments
 (0)