额外测试
This commit is contained in:
parent
31222da326
commit
edd8865d31
@ -26,13 +26,13 @@ class StringReaderTest extends TestCase
|
|||||||
'moveToNextLines' => [],
|
'moveToNextLines' => [],
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
'original' => " 中文 \r\n\r 这是 \r Is A \n\n 一个 新的 TOken",
|
'original' => " 中文 \r\n\r 这是 \r Is A \n\n 一个\n新的 TOken",
|
||||||
'tokens' => ["中文", "这是", "Is", "A", "一个", "新的", "TOken"],
|
'tokens' => ["中文", "这是", "Is", "A", "一个", "新的", "TOken"],
|
||||||
'nextTokens' => ["这是", "Is", "A", "一个", "新的", "TOken", ""],
|
'nextTokens' => ["这是", "Is", "A", "一个", "新的", "TOken", ""],
|
||||||
'positions' => [1, 8, 13, 16, 21, 24, 27],
|
'positions' => [1, 8, 13, 16, 21, 24, 27],
|
||||||
'lines' => [1, 3, 4, 4, 6, 6, 6],
|
'lines' => [1, 3, 4, 4, 6, 7, 7],
|
||||||
'linePositions' => [1, 1, 1, 4, 1, 4, 7],
|
'linePositions' => [1, 1, 1, 4, 1, 0, 3],
|
||||||
'moveToNextLines' => [1, 2, 4],
|
'moveToNextLines' => [1, 2, 4, 5],
|
||||||
]
|
]
|
||||||
];
|
];
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user