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
@@ -6,12 +6,12 @@ class GenericSmokeTest : public QObject {
|
||||
private slots:
|
||||
void test_string_ops() {
|
||||
QString s = QString::fromUtf8("mIxEd");
|
||||
QCOMPARE(s.toLower(), QString("mixed"));
|
||||
QCOMPARE(s.toLower(), QStringLiteral("mixed"));
|
||||
}
|
||||
void test_basic_qvariant() {
|
||||
QVariant v = QString("value");
|
||||
QVariant v = QStringLiteral("value");
|
||||
QVERIFY(v.canConvert<QString>());
|
||||
QCOMPARE(v.toString(), QString("value"));
|
||||
QCOMPARE(v.toString(), QStringLiteral("value"));
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user