Fix for tests - lat/lon rounding

This commit is contained in:
Nabeel Shahzad 2018-01-28 11:21:31 -06:00
parent 76caeda967
commit 8c3b271294

View File

@ -141,8 +141,8 @@ class AcarsTest extends TestCase
# Read that if the ACARS record posted # Read that if the ACARS record posted
$acars_data = $this->get($uri)->json()[0]; $acars_data = $this->get($uri)->json()[0];
$this->assertEquals(round($acars['lat'], 2), round($body[0]['lat'], 2)); $this->assertEquals(round($acars['lat'], 2), round($acars_data['lat'], 2));
$this->assertEquals(round($acars['lon'], 2), round($body[0]['lon'], 2)); $this->assertEquals(round($acars['lon'], 2), round($acars_data['lon'], 2));
$this->assertEquals($acars['log'], $acars_data['log']); $this->assertEquals($acars['log'], $acars_data['log']);
# Make sure PIREP state moved into ENROUTE # Make sure PIREP state moved into ENROUTE