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

Method test_big_stack_right

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

Source from the content-addressed store, hash-verified

586 self.assertEqual(x, i)
587
588 def test_big_stack_right(self):
589 d = deque()
590 append, pop = d.append, d.pop
591 for i in range(BIG):
592 append(i)
593 for i in reversed(range(BIG)):
594 x = pop()
595 if x != i:
596 self.assertEqual(x, i)
597 self.assertEqual(len(d), 0)
598
599 def test_big_stack_left(self):
600 d = deque()

Callers

nothing calls this directly

Calls 3

reversedFunction · 0.85
lenFunction · 0.85
assertEqualMethod · 0.45

Tested by

no test coverage detected