assertThat(getFunction(LogFunction.LnFunction.NAME, DataTypes.STRING), Matchers.nullValue());
}
@Test
public void testNormalizeReference() throws Exception {
Reference dB = TestingHelpers.createReference("dB", DataTypes.DOUBLE);
LogFunction log10 = getFunction(LogFunction.NAME, DataTypes.DOUBLE);
Function function = new Function(log10.info(), Arrays.<Symbol>asList(dB));
Function normalized = (Function) log10.normalizeSymbol(function);
assertThat(normalized, Matchers.sameInstance(function));
LogFunction ln = getFunction(LogFunction.LnFunction.NAME, DataTypes.DOUBLE);
function = new Function(ln.info(), Arrays.<Symbol>asList(dB));
normalized = (Function) ln.normalizeSymbol(function);
assertThat(normalized, Matchers.sameInstance(function));
LogFunction logBase = getFunction(LogFunction.NAME, DataTypes.DOUBLE, DataTypes.LONG);
function = new Function(logBase.info(), Arrays.<Symbol>asList(dB, Literal.newLiteral(10L)));
normalized = (Function) logBase.normalizeSymbol(function);
assertThat(normalized, Matchers.sameInstance(function));
Reference base = TestingHelpers.createReference("base", DataTypes.INTEGER);
function = new Function(logBase.info(), Arrays.<Symbol>asList(dB, base));
normalized = (Function) logBase.normalizeSymbol(function);
assertThat(normalized, Matchers.sameInstance(function));
}