File: test_stack.py

package info (click to toggle)
rich 13.9.4-1.1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 20,284 kB
  • sloc: python: 29,157; makefile: 29
file content (10 lines) | stat: -rw-r--r-- 206 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
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"