From 386186459f526a6cab1b4d3ee36fb4fe4cceb70c Mon Sep 17 00:00:00 2001 From: Nabeel Shahzad Date: Thu, 4 Jan 2018 21:59:52 -0600 Subject: [PATCH] rounding error in test --- tests/AcarsTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/AcarsTest.php b/tests/AcarsTest.php index 6a2c5fc8..67a4f07d 100644 --- a/tests/AcarsTest.php +++ b/tests/AcarsTest.php @@ -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]);