diff --git a/test.py b/test.py index 8e7cca6..efc243e 100644 --- a/test.py +++ b/test.py @@ -604,7 +604,15 @@ class TestBoardFlip(unittest.TestCase): self.assertEqual(Board.flip(board), expected_board) + def test_inverse(self): + board = (4, + -5, -1, 0, 4, 3, 0, + 0, -1, 0, -5, 0, 0, + 0, 3, 0, 0, 0, 0, + 0, 0, 0, -1, 0, 1, + -2) + self.assertEqual(Board.flip(Board.flip(board)), board) if __name__ == '__main__': unittest.main()