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

Method test_issue11845

Lib/test/test_range.py:603–610  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

601 self.assertEqual(list(reversed(r)), list(r)[::-1])
602
603 def test_issue11845(self):
604 r = range(*slice(1, 18, 2).indices(20))
605 values = {None, 0, 1, -1, 2, -2, 5, -5, 19, -19,
606 20, -20, 21, -21, 30, -30, 99, -99}
607 for i in values:
608 for j in values:
609 for k in values - {0}:
610 r[i:j:k]
611
612 def test_comparison(self):
613 test_ranges = [range(0), range(0, -1), range(1, 1, 3),

Callers

nothing calls this directly

Calls 2

sliceClass · 0.85
indicesMethod · 0.80

Tested by

no test coverage detected