mirror of https://github.com/AxioDL/tinyxml2.git
Give tests a few more chances to fail, e.g. on tag sequences or attributes.
This commit is contained in:
parent
d5c9e8b81d
commit
15354f88c3
|
@ -1026,12 +1026,17 @@ int main( int argc, const char ** argv )
|
|||
text->InsertEndChild(tag);
|
||||
XMLText* tagText = doc0.NewText("Tag");
|
||||
tag->InsertEndChild(tagText);
|
||||
tag = doc0.NewElement("tagtwo");
|
||||
tag->SetAttribute("two", "2");
|
||||
text->InsertEndChild(tag);
|
||||
tagText = doc0.NewText("TagTwo");
|
||||
tag->InsertEndChild(tagText);
|
||||
XMLText* aftText = doc0.NewText(" After");
|
||||
text->InsertEndChild(aftText);
|
||||
|
||||
XMLPrinter printer;
|
||||
doc0.Print( &printer );
|
||||
XMLTest( "Selective text wrapping", "<root>\n <text>Before <tag>Tag</tag> After</text>\n</root>\n", printer.CStr() );
|
||||
XMLTest( "Selective text wrapping", "<root>\n <text>Before <tag>Tag</tag><tagtwo two=\"2\">TagTwo</tagtwo> After</text>\n</root>\n", printer.CStr() );
|
||||
}
|
||||
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue