* Test method for {@link com.neuralnetwork
* .shared.util.NetworkConfig#NetworkConfig(int, int, int[])}.
*/
@Test
public final void testNetworkConfig() {
NetworkConfig conf = new NetworkConfig(FIVE, FIVE,
new int[]{THREE, 2, THREE});
conf.getNumInputs();
try {
conf = new NetworkConfig(
-FIVE, FIVE, new int[]{THREE, 2, THREE});
conf.getNumInputs();
} catch (IllegalArgumentException e) {
assertEquals(e.getMessage(), "Error bad configuration.");
}
try {
conf = new NetworkConfig(
FIVE, -FIVE, new int[]{THREE, 2, THREE});
conf.getNumInputs();
} catch (IllegalArgumentException e1) {
assertEquals(e1.getMessage(), "Error bad configuration.");
}
}