aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/org/traccar/helper/DIstanceCalculatorTest.java14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/org/traccar/helper/DIstanceCalculatorTest.java b/test/org/traccar/helper/DIstanceCalculatorTest.java
new file mode 100644
index 000000000..293cbb114
--- /dev/null
+++ b/test/org/traccar/helper/DIstanceCalculatorTest.java
@@ -0,0 +1,14 @@
+package org.traccar.helper;
+
+import org.junit.Assert;
+import org.junit.Test;
+
+public class DIstanceCalculatorTest {
+
+ @Test
+ public void testDistance() {
+ Assert.assertEquals(
+ DistanceCalculator.distance(0.0, 0.0, 0.05, 0.05), 7863.0, 10.0);
+ }
+
+}