def test_is_out_of_bounds_returns_true_when_negative_positions(self): board = Board(3, 3) self.assertTrue(board.is_out_of_bounds(-1, 2))
def test_is_out_of_bounds_returns_true_when_position_too_high(self): board = Board(3, 3) self.assertTrue(board.is_out_of_bounds(5, 5))
def test_is_out_of_bounds_returns_false_when_in_bounds(self): board = Board(3, 3) self.assertFalse(board.is_out_of_bounds(2, 1))