summaryrefslogtreecommitdiff
path: root/tests/xmpp.cpp
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2016-12-21 21:25:09 +0100
committerJonas Smedegaard <dr@jones.dk>2016-12-21 21:25:09 +0100
commitf820d86aadb7a5473bcc0a0a3669732ab0182555 (patch)
treea6a673c444ea3df75fe0a5d53e905030c2f617ce /tests/xmpp.cpp
parenteda4b75b1cff83336e87da90efca9fd6b4ced2c7 (diff)
parent9634cdaba2e5d2343fcbc1f07264d55609640273 (diff)
downloadbiboumi-f820d86aadb7a5473bcc0a0a3669732ab0182555.tar.gz
biboumi-f820d86aadb7a5473bcc0a0a3669732ab0182555.tar.bz2
biboumi-f820d86aadb7a5473bcc0a0a3669732ab0182555.tar.xz
biboumi-f820d86aadb7a5473bcc0a0a3669732ab0182555.zip
New upstream version 4.0upstream/4.0
Diffstat (limited to 'tests/xmpp.cpp')
-rw-r--r--tests/xmpp.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/xmpp.cpp b/tests/xmpp.cpp
index 6aab8c4..37d2b54 100644
--- a/tests/xmpp.cpp
+++ b/tests/xmpp.cpp
@@ -1,6 +1,7 @@
#include "catch.hpp"
#include <xmpp/xmpp_parser.hpp>
+#include <xmpp/auth.hpp>
TEST_CASE("Test basic XML parsing")
{
@@ -45,3 +46,9 @@ TEST_CASE("XML escape")
const std::string unescaped = "'coucou'<cc>/&\"gaga\"";
CHECK(xml_escape(unescaped) == "&apos;coucou&apos;&lt;cc&gt;/&amp;&quot;gaga&quot;");
}
+
+TEST_CASE("handshake_digest")
+{
+ const auto res = get_handshake_digest("id1234", "S4CR3T");
+ CHECK(res == "c92901b5d376ad56269914da0cce3aab976847df");
+}