Beispiel #1
0
def test_roll_fail(stack: OperandStack, values: List[int]) -> None:
    make(stack, values)
    with raises(RuntimeError):
        stack.roll()
Beispiel #2
0
def test_roll(stack: OperandStack, values: List[int], expected: List[int]) -> None:
    make(stack, values)
    stack.roll()
    assert to_list(stack) == expected