Skip to content

Commit

Permalink
Use simplifying operator
Browse files Browse the repository at this point in the history
  • Loading branch information
cjdrake committed Feb 18, 2015
1 parent 567cb58 commit 424551a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pyeda/boolalg/test/test_picosat.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@ def test_satisfy_one_errors():
assert_raises(ValueError, picosat.satisfy_one, 5, ((1, -2, 3), (-4, 5, -6)))

def test_satisfy_one():
a, b, c = map(expr, 'abc')
_, cnf = expr2dimacscnf(a & b & c)
_, cnf = expr2dimacscnf(expr("And(a, b, c)"))
assert picosat.satisfy_one(cnf.nvars, cnf.clauses) == (1, 1, 1)
assert list(picosat.satisfy_all(cnf.nvars, cnf.clauses)) == [(1, 1, 1)]

0 comments on commit 424551a

Please sign in to comment.