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@11538 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
3deba47915
commit
76277be3c7
2 changed files with 13 additions and 4 deletions
|
|
@ -1,4 +1,4 @@
|
|||
<?xml version="1.0" encoding="windows 1250"?>
|
||||
<?xml version="1.0" encoding="win 1250"?>
|
||||
<test>
|
||||
<tag attr="Nìjaký šikovný attribut">
|
||||
Úplnì nevinný tag
|
||||
|
|
|
|||
|
|
@ -4,7 +4,16 @@ using namespace Upp;
|
|||
|
||||
CONSOLE_APP_MAIN
|
||||
{
|
||||
XmlNode xml = ParseXML(LoadFile(GetDataFile("1.xml")));
|
||||
DDUMP(xml["test"]["tag"].GatherText());
|
||||
DDUMP(xml["test"]["tag"].Attr(0));
|
||||
StdLogSetup(LOG_COUT|LOG_FILE);
|
||||
|
||||
for(int i = 0; i < 2; i++) {
|
||||
XmlNode xml = ParseXML(LoadFile(GetDataFile(AsString(i) + ".xml")));
|
||||
DDUMP(TrimBoth(xml["test"]["tag"].GatherText()));
|
||||
DDUMP(xml["test"]["tag"].Attr(0));
|
||||
|
||||
ASSERT(TrimBoth(xml["test"]["tag"].GatherText()) == "Úplně nevinný tag");
|
||||
ASSERT(xml["test"]["tag"].Attr(0) == "Nějaký šikovný attribut");
|
||||
}
|
||||
|
||||
LOG("============== OK");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue