Skip to content

Commit 4f69428

Browse files
committed
Fix test_nnf.MODS()
1 parent ee61d60 commit 4f69428

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

test_nnf.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,11 @@ def models(draw):
129129

130130
@st.composite
131131
def MODS(draw):
132-
return Or(draw(st.frozensets(models())))
132+
num = draw(st.integers(min_value=1, max_value=9))
133+
amount = draw(st.integers(min_value=0, max_value=10))
134+
return Or(And(Var(name, draw(st.booleans()))
135+
for name in range(1, num))
136+
for _ in range(amount))
133137

134138

135139
@st.composite

0 commit comments

Comments
 (0)