Skip to content

Commit 2ede2f0

Browse files
committed
add error test
1 parent f8eff66 commit 2ede2f0

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

test/General/errors.jl

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -300,6 +300,16 @@ function test_errors_ResultIndexBoundsError()
300300
" bounds. There are currently 0 solution(s) in the model."
301301
end
302302

303+
function test_errors_ConflictIndexBoundsError()
304+
@test sprint(
305+
showerror,
306+
MOI.ConflictIndexBoundsError(MOI.ConstraintConflictStatus(1), 0),
307+
) ==
308+
"Conflict index of attribute " *
309+
"MathOptInterface.ConstraintConflictStatus(1) out of bounds. " *
310+
"There are currently 0 conflict(s) in the model."
311+
end
312+
303313
function test_errors_InvalidCalbackUsage()
304314
@test sprint(
305315
showerror,

0 commit comments

Comments
 (0)