rounding error in test

This commit is contained in:
Nabeel Shahzad 2018-01-04 21:59:52 -06:00
parent e326eebb77
commit 386186459f

View File

@ -37,8 +37,8 @@ class AcarsTest extends TestCase
//$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);
$point[$f] = round($point[$f], 1);
$points[$idx][$f] = round($points[$idx][$f], 1);
}
$this->assertEquals($point[$f], $points[$idx][$f]);