Add a few tests

This commit is contained in:
Florent Le Coz
2015-10-31 05:35:46 +01:00
parent 73fd710cfd
commit 66887c225b
5 changed files with 101 additions and 1 deletions
+2 -1
View File
@@ -26,6 +26,8 @@ TEST_CASE("Test basic XML parsing")
// Do the same checks on a copy of that stanza.
Stanza copy(stanza);
check_stanza(copy);
// And do the same checks on moved-constructed stanza
Stanza moved(std::move(copy));
});
xml.feed(doc.data(), doc.size(), true);
@@ -44,4 +46,3 @@ TEST_CASE("XML escape/unescape")
CHECK(xml_escape(unescaped) == "'coucou'<cc>/&"gaga"");
CHECK(xml_unescape(xml_escape(unescaped)) == unescaped);
}