]> git.openstreetmap.org Git - nominatim.git/blobdiff - test/php/Nominatim/LibTest.php
restrict size of features that get a full address search
[nominatim.git] / test / php / Nominatim / LibTest.php
index 7e8cbcc345dc98f9e3ea022a2cb34b2c9e56f289..28cd9af04896f4f58a8b59c326534c2fbf5f73b1 100644 (file)
@@ -98,8 +98,8 @@ class LibTest extends \PHPUnit\Framework\TestCase
 
         foreach ($aQueries as $sQuery) {
             $aRes = parseLatLon($sQuery);
 
         foreach ($aQueries as $sQuery) {
             $aRes = parseLatLon($sQuery);
-            $this->assertEquals(40.446, $aRes[1], 'degrees decimal ' . $sQuery, 0.01);
-            $this->assertEquals(-79.982, $aRes[2], 'degrees decimal ' . $sQuery, 0.01);
+            $this->assertEqualsWithDelta(40.446, $aRes[1], 0.01, 'degrees decimal ' . $sQuery);
+            $this->assertEqualsWithDelta(-79.982, $aRes[2], 0.01, 'degrees decimal ' . $sQuery);
             $this->assertEquals($sQuery, $aRes[0]);
         }
     }
             $this->assertEquals($sQuery, $aRes[0]);
         }
     }