commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From celes...@apache.org
Subject svn commit: r1358344 - /commons/proper/math/trunk/src/test/java/org/apache/commons/math3/linear/RealVectorTest.java
Date Fri, 06 Jul 2012 18:55:50 GMT
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;



Mime
View raw message