mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-08-12 06:12:46 -06:00
autotest: CParser::ReadString(utf8)
git-svn-id: svn://ultimatepp.org/upp/trunk@7240 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
869b08db4f
commit
3bdd1027cb
1 changed files with 7 additions and 0 deletions
|
|
@ -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"));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue