mirror of
https://github.com/arcan1s/awesome-widgets.git
synced 2025-07-13 22:05:48 +00:00
fix: remove deprecations from test cases
This commit is contained in:
@ -50,7 +50,7 @@ void TestAWFloatFormatter::test_count()
|
||||
|
||||
// test
|
||||
QString output = formatter->convert(QRandomGenerator::global()->generateDouble());
|
||||
QCOMPARE(output.count(), count);
|
||||
QCOMPARE(output.length(), count);
|
||||
|
||||
// reset
|
||||
formatter->setCount(0);
|
||||
@ -85,7 +85,7 @@ void TestAWFloatFormatter::test_forceWidth()
|
||||
|
||||
// test
|
||||
QString output = formatter->convert(QRandomGenerator::global()->generateDouble());
|
||||
QCOMPARE(output.count(), count);
|
||||
QCOMPARE(output.length(), count);
|
||||
|
||||
// reset
|
||||
formatter->setForceWidth(false);
|
||||
@ -121,7 +121,7 @@ void TestAWFloatFormatter::test_precision()
|
||||
// test
|
||||
QString output = formatter->convert(QRandomGenerator::global()->generateDouble());
|
||||
output.remove("0.");
|
||||
QCOMPARE(output.count(), precision);
|
||||
QCOMPARE(output.length(), precision);
|
||||
|
||||
// reset
|
||||
formatter->setPrecision(-1);
|
||||
|
Reference in New Issue
Block a user