Added test cases for whitespaces in LatLon

This commit is contained in:
Rahul 2020-04-03 22:09:11 +05:30
parent 244cb0e98c
commit eb2d816f2a

View File

@ -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 ',
);