Ejemplo n.º 1
0
 def test_hanoi_four(self):
     self.assertEqual(15, functions.hanoi(4))
Ejemplo n.º 2
0
 def test_hanoi_fourty(self):
     self.assertEqual(1099511627775, functions.hanoi(40))
Ejemplo n.º 3
0
 def test_hanoi_three(self):
     self.assertEqual(7, functions.hanoi(3))
Ejemplo n.º 4
0
 def test_hanoi_two(self):
     self.assertEqual(3, functions.hanoi(2))
Ejemplo n.º 5
0
 def test_hanoi_one(self):
     self.assertEqual(1, functions.hanoi(1))
Ejemplo n.º 6
0
 def test_hanoi_zero(self):
     self.assertEqual(False, functions.hanoi(0))
Ejemplo n.º 7
0
 def test_hanoi_negative(self):
     self.assertEqual(False, functions.hanoi(-1))