MCPcopy Index your code
hub / github.com/python/cpython / test_range

Method test_range

Lib/test/test_index.py:238–242  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

236class RangeTestCase(unittest.TestCase):
237
238 def test_range(self):
239 n = newstyle()
240 n.ind = 5
241 self.assertEqual(range(1, 20)[n], 6)
242 self.assertEqual(range(1, 20).__getitem__(n), 6)
243
244
245class OverflowTestCase(unittest.TestCase):

Callers

nothing calls this directly

Calls 3

newstyleClass · 0.85
assertEqualMethod · 0.45
__getitem__Method · 0.45

Tested by

no test coverage detected