stack test

This commit is contained in:
Will McGugan 2019-12-24 12:51:31 +00:00
parent 186a8a347e
commit 5861c21cf7
1 changed files with 11 additions and 0 deletions

11
tests/test_stack.py Normal file
View 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"