Skip to content

Commit

Permalink
Fix test in julia 1.6 (#106)
Browse files Browse the repository at this point in the history
  • Loading branch information
guilhermebodin authored Mar 26, 2021
1 parent 3a8bb08 commit ecea018
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions test/Tests/test_dualize_conic_linear.jl
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
@test MOI.get(dual_model, MOI.ObjectiveSense()) == MOI.MAX_SENSE
obj = MOI.get(dual_model, MOI.ObjectiveFunction{obj_type}())
@test MOI.constant(obj) == 0.0
@test MOI.coefficient.(obj.terms) == [3.0; 2.0]
@test Set(MOI.coefficient.(obj.terms)) == Set([3.0; 2.0])

eq_con1_fun = MOI.get(dual_model, MOI.ConstraintFunction(), CI{SAF{Float64}, MOI.EqualTo{Float64}}(2))
eq_con1_set = MOI.get(dual_model, MOI.ConstraintSet(), CI{SAF{Float64}, MOI.EqualTo{Float64}}(2))
Expand Down Expand Up @@ -101,11 +101,7 @@
@test MOI.get(dual_model, MOI.ObjectiveSense()) == MOI.MAX_SENSE
obj = MOI.get(dual_model, MOI.ObjectiveFunction{obj_type}())
@test MOI.constant(obj) == 0.0
if Sys.WORD_SIZE == 32
@test MOI.coefficient.(obj.terms) == [-4.0; 12.0; -3.0]
else
@test MOI.coefficient.(obj.terms) == [-4.0; -3.0; 12.0]
end
@test Set(MOI.coefficient.(obj.terms)) == Set([-4.0; 12.0; -3.0])

eq_con1_fun = MOI.get(dual_model, MOI.ConstraintFunction(), CI{SAF{Float64}, MOI.EqualTo{Float64}}(3))
eq_con1_set = MOI.get(dual_model, MOI.ConstraintSet(), CI{SAF{Float64}, MOI.EqualTo{Float64}}(3))
Expand Down

0 comments on commit ecea018

Please sign in to comment.