Skip to content

Commit 83d9510

Browse files
committed
add test for the test
1 parent a2c3c5d commit 83d9510

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

test/Test/unit.jl

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -348,6 +348,23 @@ end
348348
MOIT.solve_zero_one_with_bounds_3(mock, config)
349349
end
350350

351+
@testset "solve_constrs_inf_bounds" begin
352+
MOIU.set_mock_optimize!(mock,
353+
(mock::MOIU.MockOptimizer) -> begin
354+
MOIU.mock_optimize!(
355+
mock, MOI.OPTIMAL, (MOI.FEASIBLE_POINT, [1.0, -1.0])
356+
)
357+
end,
358+
(mock::MOIU.MockOptimizer) -> begin
359+
MOIU.mock_optimize!(
360+
mock, MOI.OPTIMAL, (MOI.FEASIBLE_POINT, [1.0, -1.0, 1.0])
361+
)
362+
end
363+
)
364+
MOIT.solve_constrs_with_inf_bounds(mock, config)
365+
MOIT.solve_one_sided_intervals(mock, config)
366+
end
367+
351368
@testset "solve_unbounded_model" begin
352369
MOIU.set_mock_optimize!(mock,
353370
(mock::MOIU.MockOptimizer) -> begin

0 commit comments

Comments
 (0)