diff options
author | Sébastien Dailly <sebastien@chimrod.com> | 2014-08-24 20:37:19 +0200 |
---|---|---|
committer | Sébastien Dailly <sebastien@chimrod.com> | 2014-08-24 20:37:19 +0200 |
commit | 1625e093e32b5bb292dfbb479b29bc1b98187df3 (patch) | |
tree | 32faee58668d2edb492e653e459c07f4d7a01504 /qml/python/tests | |
parent | 6c2cc134abf3f32d1d6ec172c6201f8d990c88ab (diff) |
Placement correction
Diffstat (limited to 'qml/python/tests')
-rw-r--r-- | qml/python/tests/test_game.py | 34 |
1 files changed, 4 insertions, 30 deletions
diff --git a/qml/python/tests/test_game.py b/qml/python/tests/test_game.py index de43909..737e55b 100644 --- a/qml/python/tests/test_game.py +++ b/qml/python/tests/test_game.py @@ -66,36 +66,10 @@ class TestBoard(unittest.TestCase): # There is only 2 state : initial board, and 2 possibilities. self.assertEqual(2, len(currentgame.tree)) - self.assertTrue(currentgame.side['TOP']) - self.assertTrue(currentgame.side['LEFT']) - self.assertFalse(currentgame.side['BOTTOM']) - self.assertFalse(currentgame.side['RIGHT']) + self.assertFalse(currentgame.side['TOP']) + self.assertFalse(currentgame.side['LEFT']) + self.assertTrue(currentgame.side['BOTTOM']) + self.assertTrue(currentgame.side['RIGHT']) currentgame.normalize() - def test_level2(self): - - def fun(pos): - return (0,0) - currentgame = create_board("test2.sgf") - - print(currentgame.tree) - - currentgame.normalize() - - self.assertEqual(11, currentgame.min_x) - self.assertEqual(13, currentgame.min_y) - self.assertEqual(19, currentgame.max_x) - self.assertEqual(19, currentgame.max_y) - - self.assertEqual((9, 7), currentgame.get_size()) - - # There is only 2 state : initial board, and 2 possibilities. - self.assertEqual(2, len(currentgame.tree)) - - self.assertTrue(currentgame.side['TOP']) - self.assertTrue(currentgame.side['LEFT']) - self.assertFalse(currentgame.side['BOTTOM']) - self.assertFalse(currentgame.side['RIGHT']) - - currentgame.normalize() |