You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Sebb (JIRA)" <ji...@apache.org> on 2010/03/25 18:31:27 UTC

[jira] Resolved: (MATH-360) SmoothingBicubicSplineInterpolatorTest.testPreconditions() assigns wzval but does not use it - test bug?

     [ https://issues.apache.org/jira/browse/MATH-360?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sebb resolved MATH-360.
-----------------------

       Resolution: Fixed
    Fix Version/s: 2.1

> 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
>             Fix For: 2.1
>
>
> 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.