Debian Codegraph @

tests/test_stack.py

raw
1 from rich._stack import Stack
2
3
4 def 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"