mirror of
https://github.com/michaelrausch/Party-Parrots-At-Sea.git
synced 2026-05-09 06:18:44 +00:00
Tidied code. Added tests
#story[1124] #pair[wmu16, hyi25]
This commit is contained in:
@@ -170,4 +170,11 @@ public class GeoUtilityTest {
|
||||
assertTrue(GeoUtility.checkCrossedLine(mark2, mark1, location2, location3) == 2);
|
||||
assertTrue(GeoUtility.checkCrossedLine(mark1, mark2, location3, location2) == 2);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testDirtyMiddlePoint() {
|
||||
GeoPoint result = GeoUtility.getDirtyMidPoint(p1, p2);
|
||||
assertEquals(57.6709285, result.getLat(), result.getLat() * toleranceRate);
|
||||
assertEquals(11.836164, result.getLng(), result.getLng() * toleranceRate);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user