From 15354f88c39e33174f9058130d9897f8a031b7bc Mon Sep 17 00:00:00 2001 From: Uli Kusterer Date: Sat, 1 Feb 2014 13:06:39 +0100 Subject: [PATCH] Give tests a few more chances to fail, e.g. on tag sequences or attributes. --- xmltest.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/xmltest.cpp b/xmltest.cpp index fa9e1a4..3997b64 100644 --- a/xmltest.cpp +++ b/xmltest.cpp @@ -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", "\n Before Tag After\n\n", printer.CStr() ); + XMLTest( "Selective text wrapping", "\n Before TagTagTwo After\n\n", printer.CStr() ); } {