public class TestBiPolarNeuralData extends TestCase {
public void testConstruct()
{
boolean[] d = { true, false };
BiPolarNeuralData data = new BiPolarNeuralData(d);
Assert.assertEquals("[T,F]",data.toString());
Assert.assertEquals(1,data.getData(0),0.5);
Assert.assertEquals(-1,data.getData(1),0.5);
Assert.assertEquals(true, data.getBoolean(0));
Assert.assertEquals(false, data.getBoolean(1));
Assert.assertEquals(data.getData().length,2);
}