Test for fractional part of Costa Rican currency
CLDR up to somewhere between v29 (used by 5.9) and v31.0.1 (used by 5.10 and later) claimed Costa Ricans don't include fractions in their currency; now it claims they expec two digits. Apparently one of them does expect those digits, so this is the regression test I'll be cherry-picking back to LTS, to accompany the CLDR updates they need. Task-number: QTBUG-70093 Change-Id: I138772cc6013fa74de4f7c54b836cac83421eab2 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
parent
972dd1c544
commit
dc7e775c9c
@ -2385,6 +2385,10 @@ void tst_QLocale::currency()
|
||||
QCOMPARE(de_DE.toCurrencyString(double(-1234.56)), QString::fromUtf8("-1.234,56\xc2\xa0\xe2\x82\xac"));
|
||||
QCOMPARE(de_DE.toCurrencyString(double(-1234.56), QLatin1String("BAZ")), QString::fromUtf8("-1.234,56\xc2\xa0" "BAZ"));
|
||||
|
||||
const QLocale es_CR(QLocale::Spanish, QLocale::CostaRica);
|
||||
QCOMPARE(es_CR.toCurrencyString(double(1565.25)),
|
||||
QString::fromUtf8("\xE2\x82\xA1" "1\xC2\xA0" "565,25"));
|
||||
|
||||
const QLocale system = QLocale::system();
|
||||
QVERIFY(system.toCurrencyString(1, QLatin1String("FOO")).contains(QLatin1String("FOO")));
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user