Oops, should not have added fail here

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1003545 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Sebastian Bazley 2010-10-01 14:28:12 +00:00
parent 5e5ba778cb
commit cb1c8dc986
1 changed files with 2 additions and 4 deletions

View File

@ -159,12 +159,10 @@ public class ContinuousOutputModelTest
ContinuousOutputModel otherCm = new ContinuousOutputModel();
otherCm.handleStep(buildInterpolator(t0, y0, t1), true);
cm.append(otherCm);
fail("Expecting IllegalArgumentException");
} catch(IllegalArgumentException iae) {
//expected behavior
return true;
return true; // there was an allowable error
}
return false;
return false; // no allowable error
}
private StepInterpolator buildInterpolator(double t0, double[] y0, double t1) {