package com.github.davidmoten.rtree.geometry;

import org.junit.Test;

import com.github.davidmoten.util.TestingUtil;

public class GeometriesTest {

    @Test
    public void testPrivateConstructorForCoverageOnly() {
        TestingUtil.callConstructorAndCheckIsPrivate(Geometries.class);
    }

}

@@ -40,16 +40,62 @@
 metry;%0A%0A
+import static org.junit.Assert.assertEquals;%0A%0A
 import o
@@ -109,16 +109,16 @@
 t.Test;%0A
-
 %0Aimport 
@@ -189,16 +189,71 @@
 Test %7B%0A%0A
+    private static final double PRECISION = 0.000001;%0A%0A
     @Tes
@@ -391,10 +391,1666 @@
 %0A    %7D%0A%0A
+    @Test%0A    public void testNormalizeLongitude() %7B%0A        assertEquals(0, Geometries.normalizeLongitude(0), PRECISION);%0A    %7D%0A%0A    @Test%0A    public void testNormalizeLongitude2() %7B%0A        assertEquals(89, Geometries.normalizeLongitude(89), PRECISION);%0A    %7D%0A%0A    @Test%0A    public void testNormalizeLongitude3() %7B%0A        assertEquals(179, Geometries.normalizeLongitude(179), PRECISION);%0A    %7D%0A%0A    @Test%0A    public void testNormalizeLongitude4() %7B%0A        assertEquals(-179, Geometries.normalizeLongitude(181), PRECISION);%0A    %7D%0A%0A    @Test%0A    public void testNormalizeLongitude5() %7B%0A        assertEquals(-179, Geometries.normalizeLongitude(541), PRECISION);%0A    %7D%0A%0A    @Test%0A    public void testNormalizeLongitude2Neg() %7B%0A        assertEquals(-89, Geometries.normalizeLongitude(-89), PRECISION);%0A    %7D%0A%0A    @Test%0A    public void testNormalizeLongitude3Neg() %7B%0A        assertEquals(-179, Geometries.normalizeLongitude(-179), PRECISION);%0A    %7D%0A%0A    @Test%0A    public void testNormalizeLongitude4Neg() %7B%0A        assertEquals(179, Geometries.normalizeLongitude(-181), PRECISION);%0A    %7D%0A%0A    @Test%0A    public void testNormalizeLongitude5Neg() %7B%0A        assertEquals(179, Geometries.normalizeLongitude(-541), PRECISION);%0A    %7D%0A%0A    @Test%0A    public void testRectangleLatLong() %7B%0A        Rectangle r = Geometries.rectangleLatLong(10, -10, 5, 10);%0A        assertEquals(10, r.x1(), PRECISION);%0A        assertEquals(365, r.x2(), PRECISION);%0A    %7D%0A%0A    @Test%0A    public void testRectangleLatLong2() %7B%0A        Rectangle r = Geometries.rectangleLatLong(5, -10, 10, 10);%0A        assertEquals(5, r.x1(), PRECISION);%0A        assertEquals(10, r.x2(), PRECISION);%0A    %7D%0A
 %7D%0A

add unit tests for factory methods