From 61e0e289d6c8e6da513b53440625cb29f031a052 Mon Sep 17 00:00:00 2001 From: Seamus Lee Date: Fri, 10 Mar 2017 09:40:37 +1100 Subject: [PATCH] Use assertApproxEquals as per Tim's suggestion --- tests/phpunit/CRM/Utils/GeocodeTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/phpunit/CRM/Utils/GeocodeTest.php b/tests/phpunit/CRM/Utils/GeocodeTest.php index c41f96944d..980cb28309 100644 --- a/tests/phpunit/CRM/Utils/GeocodeTest.php +++ b/tests/phpunit/CRM/Utils/GeocodeTest.php @@ -17,8 +17,8 @@ class CRM_Utils_GeocodeTest extends CiviUnitTestCase { $params = array('state_province_id' => 1022, 'country' => 'U.S.A'); $formatted = CRM_Utils_Geocode_Google::format($params); $this->assertTrue($formatted); - $this->assertEquals('46.729553', $params['geo_code_1']); - $this->assertEquals('-94.6858998', $params['geo_code_2']); + $this->assertApproxEquals('46.72', $params['geo_code_1'], 1); + $this->assertApproxEquals('-94.68', $params['geo_code_2'], 1); } } -- 2.25.1