diff --git a/tests/AcarsTest.php b/tests/AcarsTest.php index 79b094eb..2e27b16a 100644 --- a/tests/AcarsTest.php +++ b/tests/AcarsTest.php @@ -36,6 +36,11 @@ class AcarsTest extends TestCase foreach($route as $idx => $point) { //$this->assertHasKeys($points[$idx], $fields); foreach($fields as $f) { + if($f === 'lat' || $f === 'lon') { + $point[$f] = round($point[$f], 2); + $points[$idx][$f] = round($points[$idx][$f], 2); + } + $this->assertEquals($point[$f], $points[$idx][$f]); } }