예제 #1
0
파일: test_lib.py 프로젝트: Kareeeeem/abyad
def test_pop():
    state = State(stack=[1, 2])
    state.pop()
    assert state.stack == [1]
예제 #2
0
파일: test_lib.py 프로젝트: Kareeeeem/abyad
def test_pop_empty_stack():
    state = State()
    with pytest.raises(exc.StackError):
        state.pop()