コード例 #1
0
def test_stack_push(given, expected):
    stack = Stack(given)
    assert stack.pop().value == given[-1]
    assert stack.__str__() == expected
コード例 #2
0
def test_stack_push(given, value, expected):
    stack = Stack(given)
    stack.push(value)
    assert stack.__str__() == expected