MCPcopy
hub / github.com/Textualize/rich / test_stack

Function test_stack

tests/test_stack.py:4–10  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2
3
4def test_stack():
5 stack = Stack()
6 stack.push("foo")
7 stack.push("bar")
8 assert stack.top == "bar"
9 assert stack.pop() == "bar"
10 assert stack.top == "foo"

Callers

nothing calls this directly

Calls 3

pushMethod · 0.95
StackClass · 0.90
popMethod · 0.45

Tested by

no test coverage detected