mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-10-07 21:01:03 +00:00
further enhanced preparatory test case for tracks / outliers / distances
This commit is contained in:
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...
|
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:
|
// ...which now still is expected to be the lateOutlier because no succeeding fix qualifies it as outlier:
|
||||||
assertEquals(fix, polishedLastFix2);
|
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
|
@Test
|
||||||
|
|||||||
Reference in new issue
Block a user