def test_run_2 (self) : cycle = collatz_run(3) self.assert_(cycle == 8)
def test_run_3 (self) : cycle = collatz_run(9) self.assert_(cycle == 20)
def test_run_1 (self) : cycle = collatz_run(1) self.assert_(cycle == 1)
def test_run_4(self): """ test 4 """ value = collatz_run(900, 1000) self.assertEqual(value, 174)
def test_run_3(self): """ test 3 """ value = collatz_run(201, 210) self.assertEqual(value, 89)
def test_run_2(self): """ test 2 """ value = collatz_run(100, 200) self.assertEqual(value, 125)
def test_run_1(self): """ test 1 """ value = collatz_run(1, 10) self.assertEqual(value, 20)