super(name);
}
public void testModifier() {
Literal arg = LANG_FACTORY.createLiteral(new Double(5.2), Double.class);
Function func = LANG_FACTORY.createFunction("log10", Arrays.asList(arg), Double.class); //$NON-NLS-1$
Log10FunctionModifier modifier = new Log10FunctionModifier(LANG_FACTORY);
modifier.translate(func);
assertEquals("log", func.getName()); //$NON-NLS-1$
assertEquals(Double.class, func.getType());
List<Expression> outArgs = func.getParameters();
assertEquals(2, outArgs.size());
assertEquals(arg, outArgs.get(1));
assertTrue(outArgs.get(1) instanceof Literal);
Literal newArg = (Literal) outArgs.get(0);