summaryrefslogtreecommitdiff
path: root/src/test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/test.cpp')
-rw-r--r--src/test.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/test.cpp b/src/test.cpp
index 0a1af49..1056926 100644
--- a/src/test.cpp
+++ b/src/test.cpp
@@ -2,6 +2,7 @@
* Just a very simple test suite, by hand, using assert()
*/
+#include <xmpp/xmpp_component.hpp>
#include <xmpp/xmpp_parser.hpp>
#include <utils/encoding.hpp>
#include <logger/logger.hpp>
@@ -59,6 +60,13 @@ int main()
assert(utils::remove_invalid_xml_chars("\acouco\u0008u\uFFFEt\uFFFFe\r\n♥") == "coucoute\r\n♥");
/**
+ * Id generation
+ */
+ assert(XmppComponent::next_id() == "0");
+ assert(XmppComponent::next_id() == "1");
+ assert(XmppComponent::next_id() == "2");
+
+ /**
* Utils
*/
std::cout << color << "Testing utils…" << reset << std::endl;