19 lines
522 B
C++
19 lines
522 B
C++
#include <QObject>
|
|
#include <QtTest>
|
|
|
|
class DataTopicSmokeTest : public QObject {
|
|
Q_OBJECT
|
|
private slots:
|
|
void initTestCase() {
|
|
// basic QCoreApplication check via QCoreApplication::applicationName
|
|
QVERIFY(QCoreApplication::instance() == nullptr || true); // harmless check
|
|
}
|
|
void test_qstring_format() {
|
|
QString fmt = QStringLiteral("%1-%2").arg(42).arg(QStringLiteral("abc"));
|
|
QCOMPARE(fmt, QStringLiteral("42-abc"));
|
|
}
|
|
};
|
|
|
|
QTEST_MAIN(DataTopicSmokeTest)
|
|
#include "ddsDataTopicTests_smoke.moc"
|