diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2016-08-23 17:14:47 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-08-23 17:14:47 +1000 |
commit | e911fa2c7e4138b1edaa95ab603617660cea0462 (patch) | |
tree | 8b07a5f6c4e272eb3d574ad2398442b07c848fe6 /test/org | |
parent | 6c6b62351aadd68928b9bd3e39e2bf96d78695e8 (diff) | |
parent | f9065826c7855d1344ba75a4eb46da325eb91cab (diff) | |
download | traccar-server-e911fa2c7e4138b1edaa95ab603617660cea0462.tar.gz traccar-server-e911fa2c7e4138b1edaa95ab603617660cea0462.tar.bz2 traccar-server-e911fa2c7e4138b1edaa95ab603617660cea0462.zip |
Merge pull request #2240 from Abyss777/odometer
Odometer units for first part of protocols
Diffstat (limited to 'test/org')
-rw-r--r-- | test/org/traccar/reports/ReportUtilsTest.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/org/traccar/reports/ReportUtilsTest.java b/test/org/traccar/reports/ReportUtilsTest.java index 2e01505db..9a30ce3a7 100644 --- a/test/org/traccar/reports/ReportUtilsTest.java +++ b/test/org/traccar/reports/ReportUtilsTest.java @@ -14,7 +14,7 @@ public class ReportUtilsTest { endPosition.set(Position.KEY_TOTAL_DISTANCE, 700.0); Assert.assertEquals(ReportUtils.calculateDistance(startPosition, endPosition), 200.0, 10); startPosition.set(Position.KEY_ODOMETER, 50000); - endPosition.set(Position.KEY_ODOMETER, 50001); + endPosition.set(Position.KEY_ODOMETER, 51000); Assert.assertEquals(ReportUtils.calculateDistance(startPosition, endPosition), 1000.0, 10); } |