rounding error in test
This commit is contained in:
parent
e326eebb77
commit
386186459f
@ -37,8 +37,8 @@ class AcarsTest extends TestCase
|
|||||||
//$this->assertHasKeys($points[$idx], $fields);
|
//$this->assertHasKeys($points[$idx], $fields);
|
||||||
foreach($fields as $f) {
|
foreach($fields as $f) {
|
||||||
if($f === 'lat' || $f === 'lon') {
|
if($f === 'lat' || $f === 'lon') {
|
||||||
$point[$f] = round($point[$f], 2);
|
$point[$f] = round($point[$f], 1);
|
||||||
$points[$idx][$f] = round($points[$idx][$f], 2);
|
$points[$idx][$f] = round($points[$idx][$f], 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->assertEquals($point[$f], $points[$idx][$f]);
|
$this->assertEquals($point[$f], $points[$idx][$f]);
|
||||||
|
Loading…
Reference in New Issue
Block a user