Skip to content

Commit 924e51c

Browse files
committed
added lexer tests for multiline comments that don't end
1 parent fa00ac7 commit 924e51c

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

tests/LexTest.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,14 @@ public function testComments(){
3131
$this->lex_test("foo -- bar \n", array("foo"));
3232
$this->lex_test("foo -- bar \n ", array("foo"));
3333

34-
3534
$this->lex_test("foo/"."* hello *"."/ bar", array("foo", "bar"));
3635
$this->lex_test("foo/"."*hello*"."/ bar", array("foo", "bar"));
3736
$this->lex_test("foo/"."* hello \n world *"."/ bar", array("foo", "bar"));
3837
$this->lex_test("foo/"."*hello \n world*"."/ bar", array("foo", "bar"));
38+
39+
$this->lex_test("foo/"."* hello", array("foo"));
40+
$this->lex_test("foo/"."* hello *", array("foo"));
41+
$this->lex_test("foo/"."* hello \n world", array("foo"));
3942
}
4043

4144
public function testBacktickFields(){

0 commit comments

Comments
 (0)