rich/tests/test_stack.py
Henry Mai 0177b03700
Black formatting (#3035)
* fix: minor black formatting

* style: update CONTRIBUTORS.md

* fix: more black formatting

Default black with no arguments provided

---------

Co-authored-by: Darren Burns <darrenburns@users.noreply.github.com>
2023-11-07 17:57:21 +00:00

10 lines
206 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"