Integrates unittests for lts/services/s almost successfull into final validation phase
This commit is contained in:
46 files changed
+307
-108
No files matched your search
@@ -45,7 +45,7 @@ TEST(Qt6Compatibility, QCharConstruction)
|
||||
// Qt6 has stricter QChar constructors
|
||||
char c = 'A';
|
||||
QChar qchar = QChar(static_cast<ushort>(c));
|
||||
EXPECT_EQ(qchar, QChar('A'));
|
||||
EXPECT_EQ(qchar, QChar(u'A'));
|
||||
}
|
||||
|
||||
// Test 4: QChar Unicode handling
|
||||
@@ -56,7 +56,7 @@ TEST(Qt6Compatibility, QCharUnicode)
|
||||
EXPECT_EQ(unicodeChar.unicode(), 0x00E9);
|
||||
|
||||
QString str(unicodeChar);
|
||||
EXPECT_EQ(str, QString("é"));
|
||||
EXPECT_EQ(str, QStringLiteral("é"));
|
||||
}
|
||||
|
||||
// Test 5: QVector with Qt6
|
||||
@@ -75,9 +75,9 @@ TEST(Qt6Compatibility, QVectorBasic)
|
||||
// Test 6: QString Qt6 compatibility
|
||||
TEST(Qt6Compatibility, QStringBasic)
|
||||
{
|
||||
QString str = "Hello Qt6";
|
||||
QString str = QStringLiteral("Hello Qt6");
|
||||
EXPECT_EQ(str.length(), 9);
|
||||
EXPECT_TRUE(str.contains("Qt6"));
|
||||
EXPECT_TRUE(str.contains(QStringLiteral("Qt6")));
|
||||
|
||||
// Test Qt6 string methods - use QStringView instead of toStdStringView
|
||||
QStringView view = str;
|
||||
|
||||
Reference in new issue
Block a user