sis-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rmarec...@apache.org
Subject svn commit: r1709380 - /sis/branches/JDK8/core/sis-referencing/src/test/java/org/apache/sis/referencing/operation/projection/ObliqueStereographicTest.java
Date Mon, 19 Oct 2015 09:08:27 GMT
Author: rmarechal
Date: Mon Oct 19 09:08:27 2015
New Revision: 1709380

URL: http://svn.apache.org/viewvc?rev=1709380&view=rev
Log:
Projection : ObliqueStereographic, update tolerance for spherical and geodetic mathematical
formulas comparison  tests

Modified:
    sis/branches/JDK8/core/sis-referencing/src/test/java/org/apache/sis/referencing/operation/projection/ObliqueStereographicTest.java

Modified: sis/branches/JDK8/core/sis-referencing/src/test/java/org/apache/sis/referencing/operation/projection/ObliqueStereographicTest.java
URL: http://svn.apache.org/viewvc/sis/branches/JDK8/core/sis-referencing/src/test/java/org/apache/sis/referencing/operation/projection/ObliqueStereographicTest.java?rev=1709380&r1=1709379&r2=1709380&view=diff
==============================================================================
--- sis/branches/JDK8/core/sis-referencing/src/test/java/org/apache/sis/referencing/operation/projection/ObliqueStereographicTest.java
[UTF-8] (original)
+++ sis/branches/JDK8/core/sis-referencing/src/test/java/org/apache/sis/referencing/operation/projection/ObliqueStereographicTest.java
[UTF-8] Mon Oct 19 09:08:27 2015
@@ -263,7 +263,8 @@ public final strictfp class ObliqueStere
         dstPts[0] += FE;
         dstPts[1] += FN;
 
-        assertArrayEquals("Spherical projection", refPts, dstPts, Formulas.LINEAR_TOLERANCE);
+        // Use a smaller tolerance because spherical and elliptical formulas should be equivalent
in this case.
+        assertArrayEquals("Spherical projection", refPts, dstPts, Formulas.ANGULAR_TOLERANCE
/ 1E6);
     }
 
     /**
@@ -305,7 +306,8 @@ public final strictfp class ObliqueStere
         dstPts[0] = toDegrees(dstPts[0] + λ0);
         dstPts[1] = toDegrees(dstPts[1]);
 
-        assertArrayEquals("Spherical inverse projection", refPts, dstPts, Formulas.ANGULAR_TOLERANCE);
+        // Use a smaller tolerance because spherical and elliptical formulas should be equivalent
in this case.
+        assertArrayEquals("Spherical inverse projection", refPts, dstPts, Formulas.ANGULAR_TOLERANCE
/ 1E6);
     }
 
     /**



Mime
View raw message