def test_match1(): expr = parse('Add(1,2)') fn, cost = lookup(expr)
def test_match2(): expr = parse('Mul(1,2)') fn, cost = lookup(expr)