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

Method test_big_stack_left

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

Source from the content-addressed store, hash-verified

597 self.assertEqual(len(d), 0)
598
599 def test_big_stack_left(self):
600 d = deque()
601 append, pop = d.appendleft, d.popleft
602 for i in range(BIG):
603 append(i)
604 for i in reversed(range(BIG)):
605 x = pop()
606 if x != i:
607 self.assertEqual(x, i)
608 self.assertEqual(len(d), 0)
609
610 def test_roundtrip_iter_init(self):
611 d = deque(range(200))

Callers

nothing calls this directly

Calls 3

reversedFunction · 0.85
lenFunction · 0.85
assertEqualMethod · 0.45

Tested by

no test coverage detected