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