Changeset 12167 in josm for trunk/test/unit/org/openstreetmap
- Timestamp:
- 2017-05-15T17:13:11+02:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/data/gpx/GpxDataTest.java
r12166 r12167 325 325 data.addTrack(new ImmutableGpxTrack(Arrays.asList(points), Collections.emptyMap())); 326 326 327 assertEquals(points.get(1), data.nearestPointOnTrack(new EastNorth(10, 0), 10)); 327 WayPoint closeToMiddle = data.nearestPointOnTrack(new EastNorth(10, 0), 10); 328 assertEquals(points.get(1).lat(), closeToMiddle.lat(), 1e-4); 329 assertEquals(points.get(1).lon(), closeToMiddle.lon(), 1e-4); 328 330 329 331 WayPoint close = data.nearestPointOnTrack(new EastNorth(5, 5), 10);
Note:
See TracChangeset
for help on using the changeset viewer.