diff options
Diffstat (limited to 'tests/auto/qml/qqmllocale/tst_qqmllocale.cpp')
| -rw-r--r-- | tests/auto/qml/qqmllocale/tst_qqmllocale.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/auto/qml/qqmllocale/tst_qqmllocale.cpp b/tests/auto/qml/qqmllocale/tst_qqmllocale.cpp index 67d15e5043..7b42e09b0d 100644 --- a/tests/auto/qml/qqmllocale/tst_qqmllocale.cpp +++ b/tests/auto/qml/qqmllocale/tst_qqmllocale.cpp @@ -447,11 +447,12 @@ void tst_qqmllocale::toString_data() functionCallScript = "locale.toString(123.456)"; QTest::newRow(qPrintable(functionCallScript)) << "de_DE" << functionCallScript << "123,456" << QString(); - functionCallScript = "locale.toString(123.456, 'e')"; + // Exponent case should match what's asked for: + functionCallScript = "locale.toString(123.456, 'E')"; QTest::newRow(qPrintable(functionCallScript)) << "de_DE" << functionCallScript << "1,234560E+02" << QString(); functionCallScript = "locale.toString(123.456, 'e', 1)"; - QTest::newRow(qPrintable(functionCallScript)) << "de_DE" << functionCallScript << "1,2E+02" << QString(); + QTest::newRow(qPrintable(functionCallScript)) << "de_DE" << functionCallScript << "1,2e+02" << QString(); // Test toString(Date, string) and toString(Date[, FormatType]). const QDateTime midnight2000(QDate(2000, 1, 1), QTime(0, 0)); |
