Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
odow committed Oct 30, 2023
1 parent 73e9beb commit 927b72f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/Bridges/bridge_optimizer.jl
Original file line number Diff line number Diff line change
Expand Up @@ -732,7 +732,7 @@ function test_recursive_model_constraint(::Type{T} = Int) where {T}
@test MOI.get(b, MOI.ConstraintFunction(), c) func
new_func = T(2) * x
MOI.set(b, MOI.ConstraintFunction(), c, new_func)
@test MOI.get(b, MOI.ConstraintFunction(), c) == new_func
@test MOI.get(b, MOI.ConstraintFunction(), c) new_func
MOI.modify(b, c, MOI.ScalarCoefficientChange(x, T(3)))
@test MOI.get(b, MOI.ConstraintFunction(), c) T(3) * x
MOI.modify(b, c, MOI.ScalarConstantChange(T(-1)))
Expand All @@ -746,6 +746,7 @@ function test_recursive_model_constraint(::Type{T} = Int) where {T}
@test MOI.is_valid(b, c)
MOI.delete(b, c)
@test !MOI.is_valid(b, c)
return
end

function test_recursive_model_objective(::Type{T} = Int) where {T}
Expand Down

0 comments on commit 927b72f

Please sign in to comment.