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