File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -215,7 +215,7 @@ def flatten(self) -> list:
215215 )
216216 )
217217
218- def to_polyhedron (self , active : bool = False , reduced : bool = True ) -> pnd .ge_polyhedron :
218+ def to_polyhedron (self , active : bool = False , reduced : bool = False ) -> pnd .ge_polyhedron :
219219
220220 """
221221 Converts into a polyhedron.
Original file line number Diff line number Diff line change @@ -223,7 +223,8 @@ def test_json_conversion_id_should_be_returned_if_explicitly_defined(proposition
223223def test_from_short_wont_crash (short_proposition ):
224224
225225 # Should raise if has sub propositions and bounds are other than (0,1)
226- if len (short_proposition [2 ]) > 0 and short_proposition [4 ] != (0 ,1 ):
226+ # OR if upper bound is strict lower than lower bound
227+ if (len (short_proposition [2 ]) > 0 and short_proposition [4 ] != (0 ,1 )) or (short_proposition [4 ][1 ] < short_proposition [4 ][0 ]):
227228 with pytest .raises (Exception ):
228229 pg .AtLeast .from_short (short_proposition )
229230 else :
You can’t perform that action at this time.
0 commit comments