diff options
author | Lars Knoll <lars.knoll@nokia.com> | 2012-05-31 16:43:45 +0200 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-06-01 13:11:50 +0200 |
commit | 79194978cdb8770a06648a85eddbefe9acad7b77 (patch) | |
tree | a270fab1f80aba80f77c409eaeea4fc40e840f35 /tests | |
parent | 524d47b3f5653d7643635092a03b7539d59c43e3 (diff) |
Fix a bug in the case conversion code
Chars that have a case conversion that converts
them into several characters can't be handled
by QChar::toUpper() etc and should get ignored. The code
didn't do that correctly.
Change-Id: I281d122e90bf49187b6449088d2fccef2ef75e86
Reviewed-by: Konstantin Ritt <ritt.ks@gmail.com>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/corelib/tools/qchar/tst_qchar.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/auto/corelib/tools/qchar/tst_qchar.cpp b/tests/auto/corelib/tools/qchar/tst_qchar.cpp index 142b7fbefe..18b816fa49 100644 --- a/tests/auto/corelib/tools/qchar/tst_qchar.cpp +++ b/tests/auto/corelib/tools/qchar/tst_qchar.cpp @@ -129,6 +129,7 @@ void tst_QChar::toUpper() QVERIFY(QChar::toUpper((uint)0x10400) == 0x10400); QVERIFY(QChar::toUpper((uint)0x10428) == 0x10400); + QVERIFY(QChar::toUpper((uint)0xdf) == 0xdf); // german sharp s } void tst_QChar::toLower() @@ -178,6 +179,7 @@ void tst_QChar::toTitle() QVERIFY(QChar::toTitleCase((uint)0x10400) == 0x10400); QVERIFY(QChar::toTitleCase((uint)0x10428) == 0x10400); + QVERIFY(QChar::toTitleCase((uint)0xdf) == 0xdf); // german sharp s } void tst_QChar::toCaseFolded() |