aboutsummaryrefslogtreecommitdiff
path: root/tests/tests.cpp
diff options
context:
space:
mode:
authorManjeet Dahiya <manjeetdahiya@gmail.com>2010-09-08 05:48:56 +0000
committerManjeet Dahiya <manjeetdahiya@gmail.com>2010-09-08 05:48:56 +0000
commit0ddeb10dbeb75d53946495014dadfe7884820b11 (patch)
tree8070696459aeae004a8fdcb56e0aa7923ebffff9 /tests/tests.cpp
parent1d890555efc287f1686566ba9ff282f8f2393333 (diff)
downloadqxmpp-0ddeb10dbeb75d53946495014dadfe7884820b11.tar.gz
add version check test
Diffstat (limited to 'tests/tests.cpp')
-rw-r--r--tests/tests.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/tests.cpp b/tests/tests.cpp
index 98d0918e..911e7571 100644
--- a/tests/tests.cpp
+++ b/tests/tests.cpp
@@ -42,6 +42,7 @@
#include "QXmppUtils.h"
#include "QXmppVCardIq.h"
#include "QXmppVersionIq.h"
+#include "QXmppGlobal.h"
#include "tests.h"
QString getImageType(const QByteArray &contents);
@@ -129,6 +130,11 @@ void TestUtils::testMime()
testMimeType("test.xpm", "image/x-xpm");
}
+void TestUtils::testLibVersion()
+{
+ QCOMPARE(QXmppVersion(), QString("0.3.0_unreleased"));
+}
+
template <class T>
static void parsePacket(T &packet, const QByteArray &xml)
{