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

Method test_reversed_new

Lib/test/test_deque.py:715–718  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

713 self.assertEqual(list(reversed(deque(s))), list(reversed(s)))
714
715 def test_reversed_new(self):
716 klass = type(reversed(deque()))
717 for s in ('abcd', range(2000)):
718 self.assertEqual(list(klass(deque(s))), list(reversed(s)))
719
720 def test_gc_doesnt_blowup(self):
721 import gc

Callers

nothing calls this directly

Calls 3

reversedFunction · 0.85
listClass · 0.85
assertEqualMethod · 0.45

Tested by

no test coverage detected