From edd8865d317f1302e6dae5c47a9f442b342aec5c Mon Sep 17 00:00:00 2001 From: Jerry Yan <792602257@qq.com> Date: Tue, 26 Jan 2021 14:53:06 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A2=9D=E5=A4=96=E6=B5=8B=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/Reader/StringReaderTest.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/Reader/StringReaderTest.php b/tests/Reader/StringReaderTest.php index 00ec1a2..78ed036 100644 --- a/tests/Reader/StringReaderTest.php +++ b/tests/Reader/StringReaderTest.php @@ -26,13 +26,13 @@ class StringReaderTest extends TestCase '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"], 'nextTokens' => ["这是", "Is", "A", "一个", "新的", "TOken", ""], 'positions' => [1, 8, 13, 16, 21, 24, 27], - 'lines' => [1, 3, 4, 4, 6, 6, 6], - 'linePositions' => [1, 1, 1, 4, 1, 4, 7], - 'moveToNextLines' => [1, 2, 4], + 'lines' => [1, 3, 4, 4, 6, 7, 7], + 'linePositions' => [1, 1, 1, 4, 1, 0, 3], + 'moveToNextLines' => [1, 2, 4, 5], ] ];