Skip to content

Commit b71f001

Browse files
authoredFeb 7, 2024
Add test for writing mps.gz files (#200)
1 parent 9532746 commit b71f001

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed
 

‎test/MOI_wrapper.jl

+9
Original file line numberDiff line numberDiff line change
@@ -732,6 +732,15 @@ function test_set_affine_after_quadratic()
732732
return
733733
end
734734

735+
function test_write_mps_gz()
736+
model = HiGHS.Optimizer()
737+
x = MOI.add_variable(model)
738+
filename = joinpath(mktempdir(), "test.mps.gz")
739+
@test HiGHS.Highs_writeModel(model, filename) == HiGHS.kHighsStatusWarning
740+
@test isfile(filename)
741+
return
742+
end
743+
735744
end
736745

737746
TestMOIHighs.runtests()

0 commit comments

Comments
 (0)
Failed to load comments.