diff options
author | Florent Le Coz <louiz@louiz.org> | 2015-10-31 05:35:46 +0100 |
---|---|---|
committer | Florent Le Coz <louiz@louiz.org> | 2015-10-31 05:35:46 +0100 |
commit | 66887c225b63cecea62d17bcfae40cddef38c9d1 (patch) | |
tree | bf69037dc6ddbb96edbd09ee952bd73ce8689798 /tests/xmpp.cpp | |
parent | 73fd710cfd003022e4d28d98b4d3242e80d7dd52 (diff) | |
download | biboumi-66887c225b63cecea62d17bcfae40cddef38c9d1.tar.gz biboumi-66887c225b63cecea62d17bcfae40cddef38c9d1.tar.bz2 biboumi-66887c225b63cecea62d17bcfae40cddef38c9d1.tar.xz biboumi-66887c225b63cecea62d17bcfae40cddef38c9d1.zip |
Add a few tests
Diffstat (limited to 'tests/xmpp.cpp')
-rw-r--r-- | tests/xmpp.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/xmpp.cpp b/tests/xmpp.cpp index 46ecd35..b6b50ed 100644 --- a/tests/xmpp.cpp +++ b/tests/xmpp.cpp @@ -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); } - |