From 66b62de750e75e1081ac8eeccca17f11b297d01a Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Wed, 3 Sep 2014 00:09:42 +1200 Subject: Implement position filtering (fix #259) --- test/org/traccar/helper/DIstanceCalculatorTest.java | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 test/org/traccar/helper/DIstanceCalculatorTest.java (limited to 'test') 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); + } + +} -- cgit v1.2.3