Commit ea8776cd authored by Guillaume CLOCHARD's avatar Guillaume CLOCHARD
Browse files

Ajout test Cube.resolu()

parent e9752f67
......@@ -190,6 +190,13 @@ class TestCubeSimple(unittest.TestCase):
for f in ['U', 'L', 'F', 'R', 'B', 'D']:
self.assertTrue(self.cube.face_resolue(f))
def testCubeResolu(self):
"""Cube.resolu() doit faire son job"""
c = Cube()
self.assertTrue(c.resolu())
c.rot_R()
self.assertFalse(c.resolu())
class TestCubeRotations(unittest.TestCase):
"""Test de Cube() -- part 3"""
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment