You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by ce...@apache.org on 2012/07/06 20:55:50 UTC

svn commit: r1358344 - /commons/proper/math/trunk/src/test/java/org/apache/commons/math3/linear/RealVectorTest.java

Author: celestin
Date: Fri Jul  6 18:55:49 2012
New Revision: 1358344

URL: http://svn.apache.org/viewvc?rev=1358344&view=rev
Log:
In RealVectorTest, removed testClone(), which does not test anything.

Modified:
    commons/proper/math/trunk/src/test/java/org/apache/commons/math3/linear/RealVectorTest.java

Modified: commons/proper/math/trunk/src/test/java/org/apache/commons/math3/linear/RealVectorTest.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/test/java/org/apache/commons/math3/linear/RealVectorTest.java?rev=1358344&r1=1358343&r2=1358344&view=diff
==============================================================================
--- commons/proper/math/trunk/src/test/java/org/apache/commons/math3/linear/RealVectorTest.java (original)
+++ commons/proper/math/trunk/src/test/java/org/apache/commons/math3/linear/RealVectorTest.java Fri Jul  6 18:55:49 2012
@@ -219,19 +219,6 @@ public class RealVectorTest extends Real
         }
     }
 
-    @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;