Skip to content

Commit

Permalink
Add more tests
Browse files Browse the repository at this point in the history
  • Loading branch information
odow committed Sep 26, 2023
1 parent 62eb929 commit f94a849
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/MOI_wrapper.jl
Original file line number Diff line number Diff line change
Expand Up @@ -451,6 +451,9 @@ function test_copy_to_bug_172()
@test MOI.get(h, MOI.ConstraintFunction(), index_map[c1]) 2.0 * y
@test MOI.get(h, MOI.ConstraintFunction(), index_map[c2]) g
@test MOI.get(h, MOI.ConstraintFunction(), index_map[c3]) 1.0 * y
@test MOI.get(h, MOI.ConstraintSet(), index_map[c1]) == MOI.GreaterThan(0.0)
@test MOI.get(h, MOI.ConstraintSet(), index_map[c2]) == MOI.GreaterThan(0.0)
@test MOI.get(h, MOI.ConstraintSet(), index_map[c3]) == MOI.EqualTo(1.0)
MOI.optimize!(h)
@test MOI.get(h, MOI.TerminationStatus()) == MOI.OPTIMAL
return
Expand Down

0 comments on commit f94a849

Please sign in to comment.