package com.google.android.stardroid.units;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.robolectric.RobolectricTestRunner;

import static junit.framework.Assert.assertEquals;

/**
 * Tests that require roboelectric for API calls.
 */
@RunWith(RobolectricTestRunner.class)
public class LatLongRoboTest {

    @Test
    public void latLong_testDistance() {
        LatLong point1 = new LatLong(0, 0);
        LatLong point2 = new LatLong(95, 0);
        assertEquals(90f, point1.distanceFrom(point2));
    }
}

@@ -139,16 +139,58 @@
 tRunner;
+%0Aimport org.robolectric.annotation.Config;
 %0A%0Aimport
@@ -331,16 +331,46 @@
 .class)%0A
+@Config(manifest=Config.NONE)%0A
 public c
@@ -530,9 +530,9 @@
 ng(9
-5
+0
 , 0)
@@ -593,12 +593,225 @@
 ));%0A
-
     %7D%0A
+%0A    @Test%0A    public void latLong_testDistance2() %7B%0A        LatLong point1 = new LatLong(45, 45);%0A        LatLong point2 = new LatLong(90, 0);%0A        assertEquals(45f, point1.distanceFrom(point2), 0.05);%0A    %7D%0A%0A
 %7D%0A

Add one more test for lat long fix.