Fix test with rounding for lat/lon equivalency

This commit is contained in:
Nabeel Shahzad
2018-01-04 20:16:29 -06:00
parent 591c3e7b8b
commit 9ad6434b38

View File

@@ -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));
}
/**