Skip to content

Commit 792cd12

Browse files
authored
Update model.jl
1 parent 15f4a6f commit 792cd12

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

test/Utilities/model.jl

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -595,15 +595,16 @@ function test_constraints_invalid_index()
595595
return
596596
end
597597

598+
MOI.Utilities.@struct_of_constraints_by_set_types(
599+
Set4802,
600+
Union{MOI.LessThan{T},MOI.GreaterThan{T}},
601+
MOI.EqualTo{T},
602+
MOI.ZeroOne,
603+
Int,
604+
)
605+
598606
function test_struct_of_constraints_by_set_types()
599-
MOI.Utilities.@struct_of_constraints_by_set_types(
600-
MySet1,
601-
Union{MOI.LessThan{T},MOI.GreaterThan{T}},
602-
MOI.EqualTo{T},
603-
MOI.ZeroOne,
604-
Int,
605-
)
606-
set = MySet1{Float64,Vector{Float64},Vector{Float64},Vector{Bool},Int}()
607+
set = Set4802{Float64,Vector{Float64},Vector{Float64},Vector{Bool},Int}()
607608
@test set.num_variables == 0
608609
@test set.int === nothing
609610
set.int = 1

0 commit comments

Comments
 (0)