summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDenis Dzyubenko <denis.dzyubenko@nokia.com>2011-02-18 10:12:27 (GMT)
committerDenis Dzyubenko <denis.dzyubenko@nokia.com>2011-02-18 10:12:27 (GMT)
commit9043d96ccbbe463b26c6d6f708a7859dffcca4fa (patch)
tree8b3c3c4be41f76436a0fd3f16f086b7a3166e6fc
parent3962d060efa7e797db01c193a36857bdffa934be (diff)
downloadQt-9043d96ccbbe463b26c6d6f708a7859dffcca4fa.zip
Qt-9043d96ccbbe463b26c6d6f708a7859dffcca4fa.tar.gz
Qt-9043d96ccbbe463b26c6d6f708a7859dffcca4fa.tar.bz2
Changed the qlocale autotest
Moc was failing on the string constructed using multiple quoted strings. The following fails to parse: "foo""bar". Reviewed-by: trustme
-rw-r--r--tests/auto/qlocale/tst_qlocale.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/auto/qlocale/tst_qlocale.cpp b/tests/auto/qlocale/tst_qlocale.cpp
index 08c96a0..441de6d 100644
--- a/tests/auto/qlocale/tst_qlocale.cpp
+++ b/tests/auto/qlocale/tst_qlocale.cpp
@@ -2144,10 +2144,10 @@ void tst_QLocale::currency()
QCOMPARE(ru_RU.toCurrencyString(double(-1234.56)), QString::fromUtf8("-1234,56\xc2\xa0\xd1\x80\xd1\x83\xd0\xb1."));
const QLocale de_DE("de_DE");
- QCOMPARE(de_DE.toCurrencyString(qulonglong(1234)), QString::fromUtf8("1234""\xc2\xa0\xe2\x82\xac"));
- QCOMPARE(de_DE.toCurrencyString(qlonglong(-1234)), QString::fromUtf8("-1234""\xc2\xa0\xe2\x82\xac"));
- QCOMPARE(de_DE.toCurrencyString(double(1234.56)), QString::fromUtf8("1234,56""\xc2\xa0\xe2\x82\xac"));
- QCOMPARE(de_DE.toCurrencyString(double(-1234.56)), QString::fromUtf8("-1234,56""\xc2\xa0\xe2\x82\xac"));
+ QCOMPARE(de_DE.toCurrencyString(qulonglong(1234)), QString::fromUtf8("1234\xc2\xa0\xe2\x82\xac"));
+ QCOMPARE(de_DE.toCurrencyString(qlonglong(-1234)), QString::fromUtf8("-1234\xc2\xa0\xe2\x82\xac"));
+ QCOMPARE(de_DE.toCurrencyString(double(1234.56)), QString::fromUtf8("1234,56\xc2\xa0\xe2\x82\xac"));
+ QCOMPARE(de_DE.toCurrencyString(double(-1234.56)), QString::fromUtf8("-1234,56\xc2\xa0\xe2\x82\xac"));
}
QTEST_APPLESS_MAIN(tst_QLocale)