mirror of
https://github.com/Textualize/rich.git
synced 2025-08-04 18:18:22 +00:00
11 lines
207 B
Python
11 lines
207 B
Python
from rich._stack import Stack
|
|
|
|
|
|
def test_stack():
|
|
|
|
stack = Stack()
|
|
stack.push("foo")
|
|
stack.push("bar")
|
|
assert stack.top == "bar"
|
|
assert stack.pop() == "bar"
|
|
assert stack.top == "foo"
|