@Test public void testScale_BitTooHigh() { final double[] actual = make(P_MAX, P_MIN, P_MIN); final double[] expected = make(P_MAX - P_MIN, P_MIN, P_MIN); NetworkUtils.scaleMaximalValue(actual); assertArrayEquals(expected, actual, P_MIN); }
@Test @Ignore // conceptually discuss this public void largeArraysAreCorrectlyScaled() { double[] values = new double[50000]; values[0] = P_MAX; for (int i = 1; i < 50000; i++) { values[i] = P_MIN; } scaleMaximalValue(values); }
@Test(expected = IllegalArgumentException.class) public void testScaleactual_SingleMaxValue() { final double[] actual = make(P_MAX); NetworkUtils.scaleMaximalValue(actual); }