def test_substitute():
    from pymbolic import parse, substitute, evaluate
    u = parse('5+x.min**2')
    xmin = parse('x.min')
    assert (evaluate(substitute(u, {xmin: 25})) == 630)
def test_substitute():
    from pymbolic import parse, substitute, evaluate
    u = parse('5+x.min**2')
    xmin = parse('x.min')
    assert (evaluate(substitute(u, {xmin: 25})) == 630)