fix: remove deprecations from test cases

This commit is contained in:
2024-03-28 01:57:18 +02:00
parent b0df3535a5
commit d71f85eaad
7 changed files with 23 additions and 23 deletions

View File

@ -49,10 +49,10 @@ void TestAWStringFormatter::test_count()
// test
auto testString = AWTestLibrary::randomString();
while (testString.count() > count)
while (testString.length() > count)
testString = AWTestLibrary::randomString();
QString output = formatter->convert(testString);
QCOMPARE(output.count(), count);
QCOMPARE(output.length(), count);
// reset
formatter->setCount(0);
@ -87,7 +87,7 @@ void TestAWStringFormatter::test_forceWidth()
// test
QString output = formatter->convert(AWTestLibrary::randomString());
QCOMPARE(output.count(), count);
QCOMPARE(output.length(), count);
// reset
formatter->setForceWidth(false);