Skip to content

Commit

Permalink
Use approx
Browse files Browse the repository at this point in the history
  • Loading branch information
metab0t committed Feb 7, 2024
1 parent f00ba43 commit 534e93c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_simple_opt.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def test_simple_opt(model_interface):
obj_val = model.get_value(obj)
assert obj_val == approx(68.0)
obj_val_attr = model.get_model_attribute(poi.ModelAttribute.ObjectiveValue)
assert obj_val_attr == obj_val
assert obj_val_attr == approx(obj_val)
conexpr_val = model.get_value(conexpr)
assert conexpr_val == approx(10.0)

Expand Down

0 comments on commit 534e93c

Please sign in to comment.