* Test method for 'ca.nengo.math.impl.DefaultFunctionInterpreter.registerFunction(String, Function)'
*/
public void testRegisterFunction() {
Function c = new ConstantFunction(2, 1f);
DefaultFunctionInterpreter interpreter = new DefaultFunctionInterpreter();
interpreter.registerFunction("const", c);
PostfixFunction f = (PostfixFunction) interpreter.parse("const(x0, x1)", 2);
List<Serializable> l = f.getExpressionList();
assertEquals(Integer.valueOf(0), l.get(0));
assertEquals(Integer.valueOf(1), l.get(1));
assertEquals(c, l.get(2));