mirror of
https://github.com/Textualize/rich.git
synced 2025-08-04 10:08:40 +00:00
stack test
This commit is contained in:
parent
186a8a347e
commit
5861c21cf7
1 changed files with 11 additions and 0 deletions
11
tests/test_stack.py
Normal file
11
tests/test_stack.py
Normal file
|
@ -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…
Add table
Add a link
Reference in a new issue