Example #1
0
def test_rpn_consolidation_exception(expression,
                                     enforced_consolidation_function):
    with pytest.raises(gt.MKGeneralException):
        list(
            gt.iter_rpn_expression(expression,
                                   enforced_consolidation_function))
Example #2
0
def test_rpn_consolidation(expression, enforced_consolidation_function,
                           result):
    assert list(
        gt.iter_rpn_expression(expression,
                               enforced_consolidation_function)) == result