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

Skip to content

Commit 34997e4

Browse files
committed
test case for zebra problem
1 parent c908058 commit 34997e4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/test_csp.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -382,6 +382,8 @@ def test_tree_csp_solver():
382382
assert (tcs['NT'] == 'R' and tcs['WA'] == 'B' and tcs['Q'] == 'B' and tcs['NSW'] == 'R' and tcs['V'] == 'B') or \
383383
(tcs['NT'] == 'B' and tcs['WA'] == 'R' and tcs['Q'] == 'R' and tcs['NSW'] == 'B' and tcs['V'] == 'R')
384384

385-
385+
def test_zebra_problem():
386+
zebra_solution = solve_zebra()
387+
assert(zebra_solution[0] == 5 and zebra_solution[1] == 1)
386388
if __name__ == "__main__":
387389
pytest.main()

0 commit comments

Comments
 (0)