Skip to content

Commit d6f53a1

Browse files
test constraint name set and get
1 parent a4f780c commit d6f53a1

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

test/moi_tests.jl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2044,4 +2044,9 @@ function test_psd_cone_with_parameter()
20442044

20452045
MOI.optimize!(model)
20462046
@test MOI.get(model, MOI.VariablePrimal(), x) 1 / 3 atol = 1e-5
2047+
2048+
# test constraint name
2049+
@test MOI.get(model, MOI.ConstraintName(), c_index) == ""
2050+
MOI.set(model, MOI.ConstraintName(), c_index, "psd_cone")
2051+
@test MOI.get(model, MOI.ConstraintName(), c_index) == "psd_cone"
20472052
end

0 commit comments

Comments
 (0)