commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From t.@apache.org
Subject svn commit: r1563285 - in /commons/proper/math/trunk/src/test/java/org/apache/commons/math3/geometry/euclidean/twod/hull: ConvexHullGenerator2DAbstractTest.java GrahamScanTest.java
Date Fri, 31 Jan 2014 22:06:49 GMT
Author: tn
Date: Fri Jan 31 22:06:49 2014
New Revision: 1563285

URL: http://svn.apache.org/r1563285
Log:
Improve tests.

Modified:
    commons/proper/math/trunk/src/test/java/org/apache/commons/math3/geometry/euclidean/twod/hull/ConvexHullGenerator2DAbstractTest.java
    commons/proper/math/trunk/src/test/java/org/apache/commons/math3/geometry/euclidean/twod/hull/GrahamScanTest.java

Modified: commons/proper/math/trunk/src/test/java/org/apache/commons/math3/geometry/euclidean/twod/hull/ConvexHullGenerator2DAbstractTest.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/test/java/org/apache/commons/math3/geometry/euclidean/twod/hull/ConvexHullGenerator2DAbstractTest.java?rev=1563285&r1=1563284&r2=1563285&view=diff
==============================================================================
--- commons/proper/math/trunk/src/test/java/org/apache/commons/math3/geometry/euclidean/twod/hull/ConvexHullGenerator2DAbstractTest.java
(original)
+++ commons/proper/math/trunk/src/test/java/org/apache/commons/math3/geometry/euclidean/twod/hull/ConvexHullGenerator2DAbstractTest.java
Fri Jan 31 22:06:49 2014
@@ -99,6 +99,19 @@ public abstract class ConvexHullGenerato
         }
     }
 
+    @Test
+    public void testColinearPoints() {
+        final Collection<Vector2D> points = new ArrayList<Vector2D>();
+        points.add(new Vector2D(1, 1));
+        points.add(new Vector2D(2, 2));
+        points.add(new Vector2D(2, 4));
+        points.add(new Vector2D(4, 1));
+        points.add(new Vector2D(10, 1));
+
+        final ConvexHull2D hull = generator.generate(points);
+        checkConvexHull(points, hull);
+    }
+
     // ------------------------------------------------------------------------------
     
     protected final List<Vector2D> createRandomPoints(int size) {

Modified: commons/proper/math/trunk/src/test/java/org/apache/commons/math3/geometry/euclidean/twod/hull/GrahamScanTest.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/test/java/org/apache/commons/math3/geometry/euclidean/twod/hull/GrahamScanTest.java?rev=1563285&r1=1563284&r2=1563285&view=diff
==============================================================================
--- commons/proper/math/trunk/src/test/java/org/apache/commons/math3/geometry/euclidean/twod/hull/GrahamScanTest.java
(original)
+++ commons/proper/math/trunk/src/test/java/org/apache/commons/math3/geometry/euclidean/twod/hull/GrahamScanTest.java
Fri Jan 31 22:06:49 2014
@@ -17,7 +17,6 @@
 package org.apache.commons.math3.geometry.euclidean.twod.hull;
 
 import java.util.ArrayList;
-import java.util.Collection;
 import java.util.List;
 
 import org.apache.commons.math3.geometry.euclidean.twod.Vector2D;
@@ -37,19 +36,6 @@ public class GrahamScanTest extends Conv
     // ------------------------------------------------------------------------------
 
     @Test
-    public void testColinearPoints() {
-        final Collection<Vector2D> points = new ArrayList<Vector2D>();
-        points.add(new Vector2D(1, 1));
-        points.add(new Vector2D(2, 2));
-        points.add(new Vector2D(2, 4));
-        points.add(new Vector2D(4, 1));
-        points.add(new Vector2D(10, 1));
-
-        final ConvexHull2D hull = generator.generate(points);
-        checkConvexHull(points, hull);
-    }
-
-    @Test
     public void testIdenticalPoints() {
         final List<Vector2D> points = new ArrayList<Vector2D>();
 



Mime
View raw message