Skip to content

Commit ae7758c

Browse files
committed
Implmemented puan-rspy 0.2.1
1 parent 73c1533 commit ae7758c

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

puan/logic/plog/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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.

tests/test_puan.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,8 @@ def test_json_conversion_id_should_be_returned_if_explicitly_defined(proposition
223223
def 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:

0 commit comments

Comments
 (0)