Skip to content

Commit 1f992ef

Browse files
committed
Update
1 parent 97870a8 commit 1f992ef

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

test/Bridges/Constraint/IntervalToHyperRectangleBridge.jl

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -116,14 +116,14 @@ function test_runtests(T)
116116
return
117117
end
118118

119-
function test_modify_ScalarCoefficientChange()
120-
inner = MOI.Utilities.Model{Float64}()
121-
model = MOI.Bridges.Constraint.IntervalToHyperRectangle{Float64}(inner)
119+
function test_modify_ScalarCoefficientChange(T)
120+
inner = MOI.Utilities.Model{T}()
121+
model = MOI.Bridges.Constraint.IntervalToHyperRectangle{T}(inner)
122122
x = MOI.add_variable(model)
123-
c = MOI.add_constraint(model, 1.0 * x, MOI.Interval(0.0, 1.0))
124-
@test (MOI.get(model, MOI.ConstraintFunction(), c), 1.0 * x)
125-
MOI.modify(model, c, MOI.ScalarCoefficientChange(x, 2.0))
126-
@test (MOI.get(model, MOI.ConstraintFunction(), c), 2.0 * x)
123+
c = MOI.add_constraint(model, T(1) * x, MOI.Interval(T(0), T(1)))
124+
@test (MOI.get(model, MOI.ConstraintFunction(), c), T(1) * x)
125+
MOI.modify(model, c, MOI.ScalarCoefficientChange(x, T(2)))
126+
@test (MOI.get(model, MOI.ConstraintFunction(), c), T(2) * x)
127127
return
128128
end
129129

0 commit comments

Comments
 (0)