QtTest MOC Problem
Nathan Osman — 12 years, 1 month ago


/*===============
tests.pro
===============*/
CONFIG += qtestlib
TARGET = qenet-tests
TEMPLATE = app
SOURCES += \
TestQEnet.cpp
INCLUDEPATH += ../qenet/include
LIBS += -L../lib -lqenet
DESTDIR = ../bin
/*=================
TestQENet.cpp
=================*/
#include <QtTest/QtTest>
#include <QENet>
class TestQENet : public QObject
{
Q_OBJECT
private slots:
void testQENetAddress();
private:
QENetInitializer initializer;
};
void TestQENet::testQENetAddress()
{
QENetAddress addr;
QVERIFY(addr.host() == 0);
QVERIFY(addr.port() == 0);
}
QTEST_MAIN(TestQENet)
#include "TestQENet.moc"