Beispiel #1
0
 def test_cycle_lens_reversed_inputs(self):
     self.assert_deep_equal(cycle_lens(10, 5), [6, 9, 17, 4, 20, 7])
Beispiel #2
0
 def test_cycle_lens_throws_for_input_too_small(self):
     self.assertRaises(AssertionError, lambda: cycle_lens(0, 2))
Beispiel #3
0
 def test_cycle_lens(self):
     self.assert_deep_equal(cycle_lens(5, 10), [6, 9, 17, 4, 20, 7])
 def test_cycle_lens_reversed_inputs(self):
     self.assert_deep_equal(cycle_lens(10, 5), [6, 9, 17, 4, 20, 7])
 def test_cycle_lens_throws_for_input_too_small(self):
     self.assertRaises(AssertionError, lambda: cycle_lens(0, 2))
 def test_cycle_lens(self):
     self.assert_deep_equal(cycle_lens(5, 10), [6, 9, 17, 4, 20, 7])