mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-15 14:16:07 -06:00
.autotest
git-svn-id: svn://ultimatepp.org/upp/trunk@10448 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
3f71f54ac9
commit
7cbbdf26cb
3 changed files with 39 additions and 0 deletions
29
autotest/XmlStream2/XmlStream2.cpp
Normal file
29
autotest/XmlStream2/XmlStream2.cpp
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
#include <Core/Core.h>
|
||||
#include <plugin/zip/zip.h>
|
||||
|
||||
using namespace Upp;
|
||||
|
||||
CONSOLE_APP_MAIN
|
||||
{
|
||||
StdLogSetup(LOG_FILE|LOG_COUT);
|
||||
|
||||
FileUnZip unzip(GetDataFile("test.zip"));
|
||||
|
||||
String s = unzip.ReadFile();
|
||||
|
||||
ASSERT(s.GetCount() > 12000000);
|
||||
|
||||
StringStream ss(s);
|
||||
|
||||
XmlParser p(ss);
|
||||
|
||||
try {
|
||||
ParseXML(p);
|
||||
}
|
||||
catch(XmlError e) {
|
||||
DLOG(e);
|
||||
NEVER();
|
||||
}
|
||||
|
||||
LOG("============= OK");
|
||||
}
|
||||
10
autotest/XmlStream2/XmlStream2.upp
Normal file
10
autotest/XmlStream2/XmlStream2.upp
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
uses
|
||||
Core,
|
||||
plugin/zip;
|
||||
|
||||
file
|
||||
XmlStream2.cpp;
|
||||
|
||||
mainconfig
|
||||
"" = "";
|
||||
|
||||
BIN
autotest/XmlStream2/test.zip
Normal file
BIN
autotest/XmlStream2/test.zip
Normal file
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue