From 83e4579239151a5f5a65f0b6ebfad0fff99588bf Mon Sep 17 00:00:00 2001 From: Alexander Munch-Hansen Date: Tue, 6 Mar 2018 12:29:03 +0100 Subject: [PATCH] more tests --- test.py | 8 ++++++++ 1 file changed, 8 insertions(+) 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()