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

Method test_count

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

Source from the content-addressed store, hash-verified

1522 self.assertEqual(list(compress('ABCDEF', [1,0,1,0,1,1])), list('ACEF'))
1523
1524 def test_count(self):
1525 self.assertEqual(list(islice(count(10), 5)), [10, 11, 12, 13, 14])
1526
1527 def test_cycle(self):
1528 self.assertEqual(list(islice(cycle('ABCD'), 12)), list('ABCDABCDABCD'))

Callers

nothing calls this directly

Calls 3

listClass · 0.85
countFunction · 0.85
assertEqualMethod · 0.45

Tested by

no test coverage detected