mirror of
https://github.com/arcan1s/awesome-widgets.git
synced 2025-07-21 17:49:57 +00:00
fix: remove deprecations from test cases
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user