summaryrefslogtreecommitdiff
path: root/src/test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/test.cpp')
-rw-r--r--src/test.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/test.cpp b/src/test.cpp
index ac1a85d..a8c0276 100644
--- a/src/test.cpp
+++ b/src/test.cpp
@@ -148,6 +148,11 @@ int main()
assert(jid2.domain == "ツ.coucou");
assert(jid2.resource == "coucou@coucou/coucou");
+ // Nodeprep
+ const std::string& badjid("~louiz@EpiK-7D9D1FDE.poez.io");
+ const std::string correctjid = jidprep(badjid);
+ assert(correctjid == "~louiz@epik-7d9d1fde.poez.io");
+
/**
* Config
*/