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

Method test_reversed

Lib/test/test_bytes.py:269–274  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

267 self.assertEqual(self.type2test() != str(), True)
268
269 def test_reversed(self):
270 input = list(map(ord, "Hello"))
271 b = self.type2test(input)
272 output = list(reversed(b))
273 input.reverse()
274 self.assertEqual(output, input)
275
276 def test_getslice(self):
277 def by(s):

Callers

nothing calls this directly

Calls 4

listClass · 0.85
type2testMethod · 0.80
reverseMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected