@@ -315,7 +315,7 @@ function test_variable_primal(x, y, T)
315315end
316316
317317# We test names as it's supported by `MOI.Utilities.Model`
318- function test_name (x, y , T)
318+ function test_name (_, _ , T)
319319 model = JuMP. GenericModel {T} ()
320320 JuMP. @variable (model, 1 <= a <= 3 )
321321 JuMP. @variable (model, 1 <= b <= 3 )
@@ -333,11 +333,6 @@ function test_name(x, y, T)
333333 attr = MOI. ConstraintName ()
334334 @test MOI. get (qcqp, attr, idxmap[JuMP. index (aff)]) == " aff"
335335 @test MOI. get (qcqp, attr, idxmap[JuMP. index (con_ref)]) == " con_ref"
336- inner = qcqp. model. model
337- F = MOI. ScalarQuadraticFunction{T}
338- S = MOI. GreaterThan{T}
339- ci = first (MOI. get (inner, MOI. ListOfConstraintIndices {F,S} ()))
340- @test_broken MOI. get (inner, attr, ci) == " con_ref"
341336end
342337
343338function test_start (x, y, T)
@@ -349,10 +344,18 @@ function test_start(x, y, T)
349344 MOI. set (model, MOI. VariablePrimalStart (), b, 3 one (T))
350345 p = PolyJuMP. ScalarPolynomialFunction (one (T) * x^ 3 - x * y^ 2 , [a, b])
351346 ci = MOI. add_constraint (model, p, MOI. LessThan (zero (T)))
347+ MOI. set (model, MOI. ConstraintPrimalStart (), ci, 5 one (T))
348+ @test MOI. get (model, MOI. ConstraintPrimalStart (), ci) == 5
352349 @test MOI. is_valid (model, ci)
353350 MOI. Utilities. final_touch (model, nothing )
354351 vis = MOI. get (inner, MOI. ListOfVariableIndices ())
355352 @test sort (MOI. get (inner, MOI. VariablePrimalStart (), vis)) == T[2 , 3 , 4 , 9 ]
353+ @test MOI. get (model, MOI. ConstraintPrimalStart (), ci) == 5
354+ @test MOI. get (
355+ model. model,
356+ MOI. ConstraintPrimalStart (),
357+ model. index_map[ci],
358+ ) == 5
356359end
357360
358361function test_inner_bridge (x, y, T)
0 commit comments