Skip to content

Commit 0e38f94

Browse files
authored
Improve test coverage (#269)
These shouldn't be needed because the methods are actually hit. But coverage doesn't see them for some reason.
1 parent 7a253c7 commit 0e38f94

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

test/MOI_wrapper.jl

+7
Original file line numberDiff line numberDiff line change
@@ -1080,6 +1080,13 @@ function test_callback_error()
10801080
@test_throws ErrorException("ABC") MOI.optimize!(model)
10811081
return
10821082
end
1083+
function test_row_type()
1084+
@test HiGHS._row_type(MOI.GreaterThan(0.0)) == HiGHS._ROW_TYPE_GREATERTHAN
1085+
@test HiGHS._row_type(MOI.LessThan(0.0)) == HiGHS._ROW_TYPE_LESSTHAN
1086+
@test HiGHS._row_type(MOI.EqualTo(0.0)) == HiGHS._ROW_TYPE_EQUAL_TO
1087+
@test HiGHS._row_type(MOI.Interval(0.0, 1.0)) == HiGHS._ROW_TYPE_INTERVAL
1088+
return
1089+
end
10831090

10841091
end # module
10851092

0 commit comments

Comments
 (0)