Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Add test queens #19

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 10, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion tests/test_constraint.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from examples.coins import coins
# from examples.crosswords import crosswords
from examples.einstein import einstein
# from examples.queens import queens
from examples.queens import queens
from examples.rooks import rooks
from examples.studentdesks import studentdesks
# from examples.sudoku import sudoku
Expand Down Expand Up @@ -60,6 +60,13 @@ def test_einstein():
assert solutions == expected_solutions


def test_queens():
solutions, size = queens.solve()
assert size == 8
for solution in solutions:
queens.showSolution(solution, size)


def test_rooks():
size = 8
solutions = rooks.solve(size)
Expand Down