Skip to content

Commit 0e71a9d

Browse files
committed
Merge pull request #12 from djlambert/develop
Additional test for whitespace
2 parents 121c725 + a5d6ca0 commit 0e71a9d

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

tests/CrEOF/Geo/String/Tests/LexerTest.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,16 @@ public function testDataSource()
203203
array('value' => 79.553, 'type' => Lexer::T_FLOAT, 'position' => 11),
204204
array('value' => '°', 'type' => Lexer::T_DEGREE, 'position' => 17),
205205
)
206+
),
207+
array(
208+
'input' => "40.4738° \t -79.553°",
209+
'expectedTokens' => array(
210+
array('value' => 40.4738, 'type' => Lexer::T_FLOAT, 'position' => 0),
211+
array('value' => '°', 'type' => Lexer::T_DEGREE, 'position' => 7),
212+
array('value' => '-', 'type' => Lexer::T_MINUS, 'position' => 12),
213+
array('value' => 79.553, 'type' => Lexer::T_FLOAT, 'position' => 13),
214+
array('value' => '°', 'type' => Lexer::T_DEGREE, 'position' => 19),
215+
)
206216
)
207217
);
208218
}

0 commit comments

Comments
 (0)