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

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

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.1
    • Labels:
      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

            • Assignee:
              Unassigned
              Reporter:
              sebb@apache.org Sebb
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: