summaryrefslogtreecommitdiff
path: root/src/test.cpp
diff options
context:
space:
mode:
authorFlorent Le Coz <louiz@louiz.org>2015-09-18 22:01:02 +0200
committerFlorent Le Coz <louiz@louiz.org>2015-09-18 22:09:26 +0200
commit1691cf8f64d6175c61ddf9a4f4a95b44c32d698e (patch)
tree34870be05030d00dfbaa2d1d12c0c9141dcfc223 /src/test.cpp
parentf1de6d032091bd141e12e8345969495d6f23c3e6 (diff)
downloadbiboumi-1691cf8f64d6175c61ddf9a4f4a95b44c32d698e.tar.gz
biboumi-1691cf8f64d6175c61ddf9a4f4a95b44c32d698e.tar.bz2
biboumi-1691cf8f64d6175c61ddf9a4f4a95b44c32d698e.tar.xz
biboumi-1691cf8f64d6175c61ddf9a4f4a95b44c32d698e.zip
Introduce the configure ad-hoc command on irc servers
Provides two options for now, and they have no effect yet
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 bc85cb0..79fcd0b 100644
--- a/src/test.cpp
+++ b/src/test.cpp
@@ -13,6 +13,7 @@
#include <utils/tolower.hpp>
#include <utils/revstr.hpp>
#include <irc/irc_user.hpp>
+#include <utils/string.hpp>
#include <utils/split.hpp>
#include <utils/xdg.hpp>
#include <xmpp/jid.hpp>
@@ -170,6 +171,13 @@ int main()
const std::string ltr = "coucou";
assert(utils::revstr(ltr) == "uocuoc");
+ assert(to_bool("true"));
+ assert(!to_bool("trou"));
+ assert(to_bool("1"));
+ assert(!to_bool("0"));
+ assert(!to_bool("-1"));
+ assert(!to_bool("false"));
+
/**
* XML parsing
*/