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)
예제 #6
0
 def test_max_4(self):
     v = collatz_max(900, 1000)
     self.assertEqual(v, 174)
예제 #7
0
 def test_max_3(self):
     v = collatz_max(201, 210)
     self.assertEqual(v, 89)
예제 #8
0
 def test_max_2(self):
     v = collatz_max(100, 200)
     self.assertEqual(v, 125)
예제 #9
0
 def test_max_1(self):
     v = collatz_max(1, 10)
     self.assertEqual(v, 20)