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