Uploaded image for project: 'Commons Math'
  1. Commons Math
  2. MATH-360

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.1
    • None
    • None

    Description

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

      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];
      
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            sebb Sebb
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: