From 9ad6434b384838de9d6699e67aa3b2d35e66b7e2 Mon Sep 17 00:00:00 2001 From: Nabeel Shahzad Date: Thu, 4 Jan 2018 20:16:29 -0600 Subject: [PATCH] Fix test with rounding for lat/lon equivalency --- tests/AcarsTest.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/tests/AcarsTest.php b/tests/AcarsTest.php index 39067be1..79b094eb 100644 --- a/tests/AcarsTest.php +++ b/tests/AcarsTest.php @@ -109,10 +109,8 @@ class AcarsTest extends TestCase $this->assertNotNull($body); $this->assertCount(1, $body); - $this->assertEquals($acars['lat'], $body[0]['lat']); - $this->assertEquals($acars['lon'], $body[0]['lon']); - - //$this->allPointsInRoute([$acars], $body); + $this->assertEquals(round($acars['lat'], 2), round($body[0]['lat'], 2)); + $this->assertEquals(round($acars['lon'], 2), round($body[0]['lon'], 2)); } /**