Ejemplo n.º 1
0
def test_stack_clear():
    s = Stack()
    s.push(1)
    s.clear()
    assert len(s) == 0