more tests
This commit is contained in:
parent
00033a7aca
commit
83e4579239
8
test.py
8
test.py
|
@ -604,7 +604,15 @@ class TestBoardFlip(unittest.TestCase):
|
||||||
|
|
||||||
self.assertEqual(Board.flip(board), expected_board)
|
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__':
|
if __name__ == '__main__':
|
||||||
unittest.main()
|
unittest.main()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user