Skip to content

Commit

Permalink
Update test_checker.py
Browse files Browse the repository at this point in the history
  • Loading branch information
ikostan committed Dec 14, 2024
1 parent 2d5fa44 commit c8421c3
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions kyu_5/tic_tac_toe_checker/test_checker.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,9 @@ class IsSolvedTestCase(unittest.TestCase):
@parameterized.expand([
([[0, 0, 1], [0, 1, 2], [2, 1, 0]], -1, 'not yet finished'),
([[1, 1, 1], [0, 2, 2], [0, 0, 0]], 1, 'winning row'),
([[2, 1, 2],
[2, 1, 1],
[1, 1, 2]], 1, 'winning column'),
([[2, 1, 2],
[2, 1, 1],
[1, 2, 1]], 0, 'draw'),
([[1, 2, 0],
[0, 1, 2],
[0, 0, 1]], 1, 'wining diagonal')])
([[2, 1, 2], [2, 1, 1], [1, 1, 2]], 1, 'winning column'),
([[2, 1, 2], [2, 1, 1], [1, 2, 1]], 0, 'draw'),
([[1, 2, 0], [0, 1, 2], [0, 0, 1]], 1, 'wining diagonal')])
def test_is_solved(self, board, expected, message):
"""
Testing is_solved function with various test data.
Expand Down

0 comments on commit c8421c3

Please sign in to comment.