LUCENE-7139: move these fixed tests out of the loop

This commit is contained in:
Mike McCandless 2016-03-25 08:24:08 -04:00
parent 626bed8bc6
commit c498fcdc43
1 changed files with 14 additions and 13 deletions

View File

@ -67,6 +67,8 @@ public class GeoPointTest extends LuceneTestCase {
// Compute ellipsoid distance; it should agree for a sphere // Compute ellipsoid distance; it should agree for a sphere
final double surfaceDistance = PlanetModel.SPHERE.surfaceDistance(p1,p2); final double surfaceDistance = PlanetModel.SPHERE.surfaceDistance(p1,p2);
assertEquals(arcDistance, surfaceDistance, 1e-6); assertEquals(arcDistance, surfaceDistance, 1e-6);
}
// Now try some WGS84 points (taken randomly and compared against a known-good implementation) // Now try some WGS84 points (taken randomly and compared against a known-good implementation)
assertEquals(1.1444648695765323, PlanetModel.WGS84.surfaceDistance( assertEquals(1.1444648695765323, PlanetModel.WGS84.surfaceDistance(
new GeoPoint(PlanetModel.WGS84, 0.038203808753702884, -0.6701260455506466), new GeoPoint(PlanetModel.WGS84, 0.038203808753702884, -0.6701260455506466),
@ -81,7 +83,6 @@ public class GeoPointTest extends LuceneTestCase {
new GeoPoint(PlanetModel.WGS84, 0.3402853531962009, -0.43544195327249957), new GeoPoint(PlanetModel.WGS84, 0.3402853531962009, -0.43544195327249957),
new GeoPoint(PlanetModel.WGS84, -0.8501591797459979, -2.3044806381627594)), 1e-6); new GeoPoint(PlanetModel.WGS84, -0.8501591797459979, -2.3044806381627594)), 1e-6);
} }
}
@Test @Test
public void testBisection() { public void testBisection() {