13
0

Test: print assert message if XML property mismatch

This commit is contained in:
Robin Gareus 2014-12-03 23:27:14 +01:00
parent b52d8e5151
commit 40087eb378

View File

@ -56,7 +56,7 @@ check_nodes (XMLNode const * p, XMLNode const * q, list<string> const & ignore_p
while (i != pp.end ()) {
CPPUNIT_ASSERT_EQUAL ((*i)->name(), (*j)->name());
if (find (ignore_properties.begin(), ignore_properties.end(), (*i)->name ()) == ignore_properties.end ()) {
CPPUNIT_ASSERT_EQUAL ((*i)->value(), (*j)->value());
CPPUNIT_ASSERT_EQUAL_MESSAGE ((*i)->name(), (*i)->value(), (*j)->value());
}
++i;
++j;