commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Phil Steitz (JIRA)" <j...@apache.org>
Subject [jira] Closed: (MATH-360) SmoothingBicubicSplineInterpolatorTest.testPreconditions() assigns wzval but does not use it - test bug?
Date Sat, 03 Apr 2010 03:02:27 GMT

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

Phil Steitz closed MATH-360.
----------------------------


> 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.


Mime
View raw message