mirror of https://github.com/Textualize/rich.git
stack test
This commit is contained in:
parent
186a8a347e
commit
5861c21cf7
|
@ -0,0 +1,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"
|
Loading…
Reference in New Issue