Skip to content

Commit

Permalink
Use test.mzn
Browse files Browse the repository at this point in the history
  • Loading branch information
blegat committed Sep 2, 2024
1 parent af9cd85 commit f869e0a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/examples/packing.jl
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ function test_packing()
with_cache_type = Int,
with_bridge_type = Int,
)
MOI.set(model, MOI.RawOptimizerAttribute("model_filename"), "test.mzn")

# We need this `s` variable that is trivially equal to `sizes`
# because `MiniZincSet` only does not take constants
Expand Down Expand Up @@ -52,5 +53,6 @@ function test_packing()
@test MOI.get(model, MOI.PrimalStatus()) === MOI.FEASIBLE_POINT
@test MOI.get(model, MOI.ResultCount()) == 1
@test MOI.get(model, MOI.ObjectiveValue()) == 120
rm("test.mzn")
return
end

0 comments on commit f869e0a

Please sign in to comment.