In RealVectorTest, removed testClone(), which does not test anything.

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1358344 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Sebastien Brisard 2012-07-06 18:55:49 +00:00
parent e24e3100ed
commit 2094b5cb5f
1 changed files with 0 additions and 13 deletions

View File

@ -219,19 +219,6 @@ public class RealVectorTest extends RealVectorAbstractTest{
}
}
@Test
public void testClone() throws Exception {
double[] d = new double[1000000];
Random r = new Random(1234);
for(int i=0;i<d.length; i++) d[i] = r.nextDouble();
Assert.assertTrue(new ArrayRealVector(d).getNorm() > 0);
double[] c = d.clone();
c[0] = 1;
Assert.assertNotSame(c[0], d[0]);
d[0] = 1;
Assert.assertEquals(new ArrayRealVector(d).getNorm(), new ArrayRealVector(c).getNorm(), 0);
}
@Test(expected=DimensionMismatchException.class)
public void testCombineToSelfPrecondition() {
final double a = 1d;