more tests

This commit is contained in:
Alexander Munch-Hansen 2018-03-06 12:29:03 +01:00
parent 00033a7aca
commit 83e4579239

View File

@ -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()