changing test rules

main
Thomas BARBIER 2 years ago
parent bfc2723a23
commit 0f01de9893

@ -6,13 +6,10 @@ from ..src.board import Board
class TestRules(unittest.TestCase): class TestRules(unittest.TestCase):
@parameterized.expand([ @parameterized.expand([
(Board(6, 7), 6, 7, True), (Board(6, 7), True),
(Board(10, 10), 10, 10, False), (Board(10, 10), False),
(Board(6, 7), '6', '7', False),
(Board(7, 1), 7, '1', False),
(Board(1, 6), '1', 6, False),
]) ])
def test_check_board_size(self, board, row, col, no_exception): def test_check_board_size(self, board, no_exception):
rules = Rules() rules = Rules()
if no_exception: if no_exception:

Loading…
Cancel
Save