Example #1
0
def test_plus():
    process("+")
    assert stack == [3]
Example #2
0
def test_push():
    process("1")
    process("2")
    assert stack == [1, 2]
Example #3
0
def test_mult():
    process("2")
    process("*")
    assert stack == [4]
Example #4
0
def test_div():
    process("2")
    process("/")
    assert stack == [2]
Example #5
0
def test_minus():
    process("1")
    process("-")
    assert stack == [2]