[prev in list] [next in list] [prev in thread] [next in thread] 

List:       jakarta-commons-dev
Subject:    svn commit: r1563285 - in /commons/proper/math/trunk/src/test/java/org/apache/commons/math3/geometry
From:       tn () apache ! org
Date:       2014-01-31 22:06:49
Message-ID: 20140131220650.04CA52388868 () eris ! apache ! org
[Download RAW message or body]

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/c \
ommons/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/c \
ommons/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>();
 


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic