From b71f00192b6ceff68e41e27f8d1b35e13849b491 Mon Sep 17 00:00:00 2001 From: Oscar Dowson Date: Thu, 8 Feb 2024 10:56:04 +1300 Subject: [PATCH] Add test for writing mps.gz files (#200) --- test/MOI_wrapper.jl | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/test/MOI_wrapper.jl b/test/MOI_wrapper.jl index 9f7b2d9..25eb910 100644 --- a/test/MOI_wrapper.jl +++ b/test/MOI_wrapper.jl @@ -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()