From eb2d816f2aebd41afee42df254472848c280dca1 Mon Sep 17 00:00:00 2001 From: Rahul Date: Fri, 3 Apr 2020 22:09:11 +0530 Subject: [PATCH] Added test cases for whitespaces in LatLon --- test/php/Nominatim/LibTest.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/test/php/Nominatim/LibTest.php b/test/php/Nominatim/LibTest.php index dca2107d..7e8cbcc3 100644 --- a/test/php/Nominatim/LibTest.php +++ b/test/php/Nominatim/LibTest.php @@ -66,8 +66,11 @@ class LibTest extends \PHPUnit\Framework\TestCase '40 26.767 N 79 58.933 W', '40° 26.767′ N 79° 58.933′ W', "40° 26.767' N 79° 58.933' W", + "40° 26.767' + N 79° 58.933' W", 'N 40 26.767, W 79 58.933', 'N 40°26.767′, W 79°58.933′', + ' N 40°26.767′, W 79°58.933′', "N 40°26.767', W 79°58.933'", '40 26 46 N 79 58 56 W', @@ -77,6 +80,7 @@ class LibTest extends \PHPUnit\Framework\TestCase 'N 40 26 46 W 79 58 56', 'N 40° 26′ 46″, W 79° 58′ 56″', 'N 40° 26\' 46", W 79° 58\' 56"', + 'N 40° 26\' 46", W 79° 58\' 56"', '40.446 -79.982', '40.446,-79.982', @@ -84,7 +88,11 @@ class LibTest extends \PHPUnit\Framework\TestCase 'N 40.446° W 79.982°', '[40.446 -79.982]', + '[40.446, -79.982]', + ' 40.446 , -79.982 ', ' 40.446 , -79.982 ', + ' 40.446 , -79.982 ', + ' 40.446 , -79.982 ', ); -- 2.39.5