mirror of
https://github.com/apache/commons-math.git
synced 2025-02-07 18:49:40 +00:00
Add test for getN.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141405 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
d1a8e962cf
commit
f457a74d08
@ -25,7 +25,7 @@ import org.apache.commons.math.FunctionEvaluationException;
|
||||
/**
|
||||
* Tests the PolynomialSplineFunction implementation.
|
||||
*
|
||||
* @version $Revision: 1.1 $
|
||||
* @version $Revision: 1.2 $
|
||||
*/
|
||||
public class PolynomialSplineFunctionTest extends TestCase {
|
||||
|
||||
@ -61,6 +61,7 @@ public class PolynomialSplineFunctionTest extends TestCase {
|
||||
new PolynomialSplineFunction(knots, polynomials);
|
||||
assertTrue(Arrays.equals(knots, spline.getKnots()));
|
||||
assertEquals(1d, spline.getPolynomials()[0].getCoefficients()[2], 0);
|
||||
assertEquals(3, spline.getN());
|
||||
|
||||
try { // too few knots
|
||||
spline =
|
||||
|
Loading…
x
Reference in New Issue
Block a user