Skip to content

Commit

Permalink
Add test for writing mps.gz files
Browse files Browse the repository at this point in the history
  • Loading branch information
odow committed Feb 7, 2024
1 parent 9532746 commit c99af7e
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions test/MOI_wrapper.jl
Original file line number Diff line number Diff line change
Expand Up @@ -732,6 +732,15 @@ function test_set_affine_after_quadratic()
return
end

function test_write_mps_gz()
model = HiGHS.Optimizer()
x = MOI.add_variable(model)
filename = joinpath(mktempdir(), "test.mps.gz")
@test HiGHS.Highs_writeModel(model, filename) == HiGHS.kHighsStatusWarning
@test isfile(filename)
return
end

end

TestMOIHighs.runtests()

0 comments on commit c99af7e

Please sign in to comment.