def test_single(self):
     """
     Test the single solve method
     :return:
     """
     cache = {}
     max_cycle = collatz_solve_single(10, cache)
     self.assertEqual(max_cycle, 7)
 def test_solve_single_3(self):
     cycle_length = collatz_solve_single(2)
     self.assertEqual(cycle_length, 2)
 def test_solve_single_4(self):
     cycle_length = collatz_solve_single(10)
     self.assertEqual(cycle_length, 7)
 def test_solve_single_1(self):
     cycle_length = collatz_solve_single(5)
     self.assertEqual(cycle_length, 6)