Correct Arabic exponent separator in QLocale benchmarks

The separator was changed at CLDR v44 to use a plain aleph, U+0623,
rather than the U+0627 aleph with hamza above previously used. This
is, in both cases, followed by U+0633, "seen".

Task-number: QTBUG-121325
Task-number: QTBUG-126060
Pick-to: 6.7 6.5
Change-Id: I013525e0876c4c47111846135c9311e7b3442dd3
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
(cherry picked from commit 45ec096672a67db01d29f78e7e910bebab36e31b)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
Edward Welbourne 2024-08-15 15:29:34 +02:00 committed by Qt Cherry-pick Bot
parent 6cc95e1d92
commit 389aca9b71

View File

@ -555,13 +555,13 @@ void tst_QLocale::toDouble_data()
QTest::newRow("se_NO: 4x-3") // Only first character of exponent
<< u"4\u00b7\u2212" "03"_s << u"se_NO"_s << false << 0.0;
QTest::newRow("ar_EG: 4e-3") // Arabic, Egypt
<< u"\u0664\u0627\u0633\u061c-\u0660\u0663"_s << u"ar_EG"_s << true << 4e-3;
<< u"\u0664\u0623\u0633\u061c-\u0660\u0663"_s << u"ar_EG"_s << true << 4e-3;
QTest::newRow("ar_EG: 4x-3") // Only first character of exponent
<< u"\u0664\u0627\u061c-\u0660\u0663"_s << u"ar_EG"_s << false << 0.0;
<< u"\u0664\u0623\u061c-\u0660\u0663"_s << u"ar_EG"_s << false << 0.0;
QTest::newRow("ar_EG: 4e!3") // Only first character of sign
<< u"\u0664\u0627\u0633\u061c\u0660\u0663"_s << u"ar_EG"_s << false << 0.0;
<< u"\u0664\u0623\u0633\u061c\u0660\u0663"_s << u"ar_EG"_s << false << 0.0;
QTest::newRow("ar_EG: 4x!3") // Only first character of sign and exponent
<< u"\u0664\u0627\u061c\u0660\u0663"_s << u"ar_EG"_s << false << 0.0;
<< u"\u0664\u0623\u061c\u0660\u0663"_s << u"ar_EG"_s << false << 0.0;
}
void tst_QLocale::toDouble()