def test_max_4 (self) :
     v = collatz_max(133, 144)
     self.assert_(v == 144)
 def test_max_5 (self) :
     v = collatz_max(12, 12)
     self.assert_(v == 12)
 def test_max_2 (self) :
     v = collatz_max(12, 3)
     self.assert_(v == 12)
 def test_max_3 (self) :
     v = collatz_max(14, 21)
     self.assert_(v == 21)
 def test_max_1 (self) :
     v = collatz_max(1, 0)
     self.assert_(v == 1)
Exemple #6
0
 def test_max_4(self):
     v = collatz_max(900, 1000)
     self.assertEqual(v, 174)
Exemple #7
0
 def test_max_3(self):
     v = collatz_max(201, 210)
     self.assertEqual(v, 89)
Exemple #8
0
 def test_max_2(self):
     v = collatz_max(100, 200)
     self.assertEqual(v, 125)
Exemple #9
0
 def test_max_1(self):
     v = collatz_max(1, 10)
     self.assertEqual(v, 20)