summaryrefslogtreecommitdiffstats
path: root/tests/Lexer
diff options
context:
space:
mode:
Diffstat (limited to 'tests/Lexer')
-rw-r--r--tests/Lexer/TokenTest.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/Lexer/TokenTest.php b/tests/Lexer/TokenTest.php
index 1285da0..535f933 100644
--- a/tests/Lexer/TokenTest.php
+++ b/tests/Lexer/TokenTest.php
@@ -56,6 +56,12 @@ class TokenTest extends TestCase
$tok = new Token("' bar foo '", Token::TYPE_STRING);
$this->assertEquals($tok->value, ' bar foo ');
+
+ $tok = new Token("'\''", Token::TYPE_STRING);
+ $this->assertEquals($tok->value, '\'');
+
+ $tok = new Token('"\c\d\e\f\g\h\i\j\k\l\m\p\q\s\u\v\w\x\y\z"', Token::TYPE_STRING);
+ $this->assertEquals($tok->value, 'cdefghijklmpqsuvwxyz');
}
public function testExtractSymbol()