further enhanced preparatory test case for tracks / outliers / distances

This commit is contained in:
Axel Uhl committed 2012-07-25 10:15:00 +02:00
1 parent ae4d77d09d
commit a99e2cfa2f
1 file changed
+2
@@ -382,6 +382,8 @@ public class TrackTest {
GPSFix polishedLastFix2 = track.getLastFixBefore(new MillisecondsTimePoint(Long.MAX_VALUE)); // get the last smoothened fix...
// ...which now still is expected to be the lateOutlier because no succeeding fix qualifies it as outlier:
assertEquals(fix, polishedLastFix2);
// check total distance; should have one more normal segment with the two outliers removed
assertEquals(speed.getMetersPerSecond()*steps, track.getDistanceTraveled(now, start).getMeters(), 0.01);
}
@Test