diff options
author | Frederic Guillot <fred@kanboard.net> | 2016-06-01 20:04:07 -0400 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2016-06-01 20:04:07 -0400 |
commit | b0a31b168f41cf4b4e88b018747916992d9e5830 (patch) | |
tree | 00f7fdf88e097643d9d198aa128cde3ddbb2dd28 /tests | |
parent | 92aba95959633eee824e2d19e12adc7921d31431 (diff) | |
parent | 6af3b6dfdbd2be9de3a3d670b89f694e4fcffd69 (diff) |
Merge pull-request #2280
Diffstat (limited to 'tests')
-rw-r--r-- | tests/units/Core/Filter/LexerTest.php | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/tests/units/Core/Filter/LexerTest.php b/tests/units/Core/Filter/LexerTest.php index d405e9df..c72231c4 100644 --- a/tests/units/Core/Filter/LexerTest.php +++ b/tests/units/Core/Filter/LexerTest.php @@ -178,4 +178,28 @@ class LexerTest extends Base $this->assertSame($expected, $lexer->tokenize('date:<=2016-01-01 something else')); } + + public function testTokenizeWithUtf8Letters() + { + $lexer = new Lexer(); + $lexer->setDefaultToken('myDefaultToken'); + + $expected = array( + 'myDefaultToken' => array('àa éçùe'), + ); + + $this->assertSame($expected, $lexer->tokenize('àa éçùe')); + } + + public function testTokenizeWithUtf8Numbers() + { + $lexer = new Lexer(); + $lexer->setDefaultToken('myDefaultToken'); + + $expected = array( + 'myDefaultToken' => array('६Δↈ五一'), + ); + + $this->assertSame($expected, $lexer->tokenize('६Δↈ五一')); + } } |