MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_repeat

Method test_repeat

Lib/test/test_itertools.py:2341–2344  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2339class LengthTransparency(unittest.TestCase):
2340
2341 def test_repeat(self):
2342 self.assertEqual(operator.length_hint(repeat(None, 50)), 50)
2343 self.assertEqual(operator.length_hint(repeat(None, 0)), 0)
2344 self.assertEqual(operator.length_hint(repeat(None), 12), 12)
2345
2346 def test_repeat_with_negative_times(self):
2347 self.assertEqual(operator.length_hint(repeat(None, -1)), 0)

Callers

nothing calls this directly

Calls 3

repeatFunction · 0.85
assertEqualMethod · 0.45
length_hintMethod · 0.45

Tested by

no test coverage detected