def test_no_comparison():
    from pymbolic import parse
    x = parse('17+3*x')
    y = parse('12-5*y')

    def expect_typeerror(f):
        try:
            f()
        except TypeError:
            pass
        else:
            raise AssertionError
    expect_typeerror((lambda : (x < y)))
    expect_typeerror((lambda : (x <= y)))
    expect_typeerror((lambda : (x > y)))
    expect_typeerror((lambda : (x >= y)))
def test_no_comparison():
    from pymbolic import parse
    x = parse('17+3*x')
    y = parse('12-5*y')

    def expect_typeerror(f):
        try:
            f()
        except TypeError:
            pass
        else:
            raise AssertionError
    expect_typeerror((lambda : (x < y)))
    expect_typeerror((lambda : (x <= y)))
    expect_typeerror((lambda : (x > y)))
    expect_typeerror((lambda : (x >= y)))