From 3816b09c5aedd58efc1151f191f302eef9b0f7aa Mon Sep 17 00:00:00 2001 From: cxl Date: Wed, 30 Oct 2019 07:50:25 +0000 Subject: [PATCH] .autotest git-svn-id: svn://ultimatepp.org/upp/trunk@13662 f0d560ea-af0d-0410-9eb7-867de7ffcac7 --- autotest/CParser/main.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/autotest/CParser/main.cpp b/autotest/CParser/main.cpp index 28ec1e3d4..f9d30a2dd 100644 --- a/autotest/CParser/main.cpp +++ b/autotest/CParser/main.cpp @@ -78,5 +78,13 @@ CONSOLE_APP_MAIN CHECK_OVERFLOW("-1e500", ReadDouble(), true); CHECK_OVERFLOW(String('0', 500), ReadDouble(), true); + { + CParser p("+ /* \n */ a"); + p.Char('+'); + ASSERT(p.GetLine() == 2); + ASSERT(p.GetColumn() == 6); + ASSERT(p.ReadId() == "a"); + } + LOG("=========== OK"); }