Commit 1b8f84da authored by Joao Oliveira's avatar Joao Oliveira

No need for force locale in calculate text, the field only contains the valid value

parent 70ed88ab
Pipeline #6979 canceled with stage
in 0 seconds
......@@ -45,14 +45,6 @@ void CalculateTextTest::cleanupTestCase()
void CalculateTextTest::testSimpleCalculate()
{
// Force consistent locale
QLocale locale(QStringLiteral("en_US.UTF-8"));
if (locale == QLocale::c())
{
locale = QLocale(QLocale::English, QLocale::UnitedStates);
}
QLocale::setDefault(locale);
const QString testFile = QStringLiteral( KDESRCDIR "data/simpleCalculate.pdf" );
QMimeDatabase db;
const QMimeType mime = db.mimeTypeForFile( testFile );
......@@ -86,7 +78,7 @@ void CalculateTextTest::testSimpleCalculate()
// Verify the results
QCOMPARE (fields[QStringLiteral ("Sum")]->text(), QStringLiteral( "60" ));
QCOMPARE (fields[QStringLiteral ("AVG")]->text(), QStringLiteral( "20" ));
QCOMPARE (fields[QStringLiteral ("Prod")]->text(), QStringLiteral( "6,000" ));
QCOMPARE (fields[QStringLiteral ("Prod")]->text(), QStringLiteral( "6000" ));
QCOMPARE (fields[QStringLiteral ("Min")]->text(), QStringLiteral( "10" ));
QCOMPARE (fields[QStringLiteral ("Max")]->text(), QStringLiteral( "30" ));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment