From 2094b5cb5fc070a17a018076753733b1fdc57f20 Mon Sep 17 00:00:00 2001 From: Sebastien Brisard Date: Fri, 6 Jul 2012 18:55:49 +0000 Subject: [PATCH] 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 --- .../apache/commons/math3/linear/RealVectorTest.java | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/src/test/java/org/apache/commons/math3/linear/RealVectorTest.java b/src/test/java/org/apache/commons/math3/linear/RealVectorTest.java index a8a0412aa..5610a4f36 100644 --- a/src/test/java/org/apache/commons/math3/linear/RealVectorTest.java +++ b/src/test/java/org/apache/commons/math3/linear/RealVectorTest.java @@ -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 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;