Exemplo n.º 1
0
 def test_max_cycle_len_throws_if_input_too_small(self):
     self.assertRaises(AssertionError, lambda: max_cycle_len(0, 5))
Exemplo n.º 2
0
 def test_max_cycle_len_with_inputs_reversed(self):
     self.assertEqual(max_cycle_len(5, 10), 20)
Exemplo n.º 3
0
 def test_max_cycle_len(self):
     self.assertEqual(max_cycle_len(95, 205), 125)
 def test_max_cycle_len_throws_if_input_too_small(self):
     self.assertRaises(AssertionError, lambda: max_cycle_len(0, 5))
 def test_max_cycle_len_with_inputs_reversed(self):
     self.assertEqual(max_cycle_len(5, 10), 20)
 def test_max_cycle_len(self):
     self.assertEqual(max_cycle_len(95, 205), 125)