SmoothingBicubicSplineInterpolatorTest.testPreconditions()  assigns wzval but 
does not use it - test bug?
---------------------------------------------------------------------------------------------------------

                 Key: MATH-360
                 URL: https://issues.apache.org/jira/browse/MATH-360
             Project: Commons Math
          Issue Type: Bug
            Reporter: Sebb


Findbugs points out that 
SmoothingBicubicSplineInterpolatorTest.testPreconditions()  assigns wzval but 
does not use it - is this a test bug?

{code}
double[][] wzval = new double[xval.length][yval.length + 1];
try {
    p = interpolator.interpolate(xval, wyval, zval); // <== should the last 
param be wzval ??
    Assert.fail("an exception should have been thrown");
} catch (IllegalArgumentException e) {
    // Expected
}
wzval = new double[xval.length - 1][yval.length];

{code}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to