autotest: CParser::ReadString(utf8)

git-svn-id: svn://ultimatepp.org/upp/trunk@7240 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2014-04-13 06:18:41 +00:00
parent 869b08db4f
commit 3bdd1027cb

View file

@ -20,6 +20,13 @@ using namespace Upp;
CONSOLE_APP_MAIN
{
StdLogSetup(LOG_FILE|LOG_COUT);
{
String s = "UTF8 ěščřžýá";
String txt = AsCString(s) + "\n" + AsCString(s);
CParser p(txt);
ASSERT(p.ReadString() == s + s);
}
CParser p("i if while 12345 alfa");
ASSERT(p.Id("i"));