* Test method for 'ca.nengo.math.impl.PostfixFunction.map(float[])'
*/
public void testMap() {
//some basic tests follow, and a more exhaustive list is included in DefaultFunctionInterpreterTest
PostfixFunction f = null;
ArrayList<Serializable> l = new ArrayList<Serializable>();
l.add(new Float(5.5f));
f = new PostfixFunction(l, "", 0);
TestUtil.assertClose(5.5f, f.map(new float[0]), .0001f);
l.clear();
l.add(Integer.valueOf(0));
f = new PostfixFunction(l, "", 1);
TestUtil.assertClose(1f, f.map(new float[]{1f}), .0001f);
l.clear();
l.add(Integer.valueOf(0));
l.add(new SineFunction(1));
f = new PostfixFunction(l, "", 1);
TestUtil.assertClose(0f, f.map(new float[]{(float) Math.PI}), .0001f);
}