/*
* Test method for 'ca.nengo.model.impl.FunctionInput.getHistory(String)'
*/
public void testGetHistory() throws StructuralException, SimulationException {
FunctionInput input = new FunctionInput("test", new Function[]{new ConstantFunction(1, 1f), new ConstantFunction(1, 2f)}, Units.UNK);
assertEquals(1, input.listStates().size());
assertTrue(input.listStates().get(FunctionInput.STATE_NAME) != null);
assertEquals(1, input.getHistory(FunctionInput.STATE_NAME).getValues().length);
assertTrue(input.getHistory(FunctionInput.STATE_NAME).getValues()[0][0] > .5f);