blob: 5bbb885dbecec1aa246f5b1a0ab597979dce7826 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
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"
|