Ignore:
Timestamp:
2017-05-15T17:13:11+02:00 (8 years ago)
Author:
michael2402
Message:

Make WayPoint implement ILatLon.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/unit/org/openstreetmap/josm/data/gpx/GpxDataTest.java

    r12166 r12167  
    325325        data.addTrack(new ImmutableGpxTrack(Arrays.asList(points), Collections.emptyMap()));
    326326
    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);
    328330
    329331        WayPoint close = data.nearestPointOnTrack(new EastNorth(5, 5), 10);
Note: See TracChangeset for help on using the changeset viewer.