Skip to content

Commit

Permalink
Add two more similar tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
jwg4 committed Nov 15, 2023
1 parent 584448d commit d214e73
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tests/test_solution_count.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,15 @@ def test_solution_count():
data = np.array([[1, 0, 0], [0, 1, 0], [0, 1, 1], [0, 0, 1]], dtype=DTYPE_FOR_ARRAY)
result = get_solution_count(data)
assert result == 2


def test_solution_count_single_solution():
data = np.array([[1, 0, 0], [0, 1, 0], [0, 1, 1]], dtype=DTYPE_FOR_ARRAY)
result = get_solution_count(data)
assert result == 1


def test_solution_count_no_solutions():
data = np.array([[1, 0, 0, 0], [0, 1, 0, 0], [0, 1, 1, 0], [0, 0, 1, 0]], dtype=DTYPE_FOR_ARRAY)
result = get_solution_count(data)
assert result == 0

0 comments on commit d214e73

Please sign in to comment.