summaryrefslogtreecommitdiff
path: root/tests/xmpp.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/xmpp.cpp')
-rw-r--r--tests/xmpp.cpp3
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);
}
-