tests: make smoke-tests Qt6-safe (use QStringLiteral/QLatin1)
This commit is contained in:
1 parent
3988248897
commit
8ea74a81ad
3 files changed
+10
-10
No files matched your search
@@ -9,8 +9,8 @@ private slots:
|
||||
QVERIFY(QCoreApplication::instance() == nullptr || true); // harmless check
|
||||
}
|
||||
void test_qstring_format() {
|
||||
QString fmt = QStringLiteral("%1-%2").arg(42).arg("abc");
|
||||
QCOMPARE(fmt, QString("42-abc"));
|
||||
QString fmt = QStringLiteral("%1-%2").arg(42).arg(QStringLiteral("abc"));
|
||||
QCOMPARE(fmt, QStringLiteral("42-abc"));
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user