summaryrefslogtreecommitdiffstats
path: root/tests/auto
diff options
context:
space:
mode:
authorRitt Konstantin <ritt.ks@gmail.com>2011-07-08 18:24:57 +0400
committerQt by Nokia <qt-info@nokia.com>2011-07-13 13:31:13 +0200
commitd17c76feee9eece4f7d9d1c5cec254842bb0a639 (patch)
treeb2ddf87c707d5dbc2946c64c561d1b83dfe3ef12 /tests/auto
parent4a8d8055b45119207880f7f343728f15bf960bba (diff)
drop an obsolete QChar::NoCategory enum value
there is no such category in the Unicode specs. the QChar::NoCategory was a subject of bugs since it was introduced. int 4.6 it's meaning was limited to mention ucs4 > UNICODE_LAST_CODEPOINT only (which is useless anyways) in order to preserve the old (wrong) behavior. fix it now for qtbase Change-Id: I630534824e071090b39772881e747c1fdb758719 Reviewed-on: http://codereview.qt.nokia.com/1584 Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
Diffstat (limited to 'tests/auto')
-rw-r--r--tests/auto/qchar/tst_qchar.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/auto/qchar/tst_qchar.cpp b/tests/auto/qchar/tst_qchar.cpp
index 1fdbc34eb9..02807f38b3 100644
--- a/tests/auto/qchar/tst_qchar.cpp
+++ b/tests/auto/qchar/tst_qchar.cpp
@@ -289,11 +289,10 @@ void tst_QChar::category()
QVERIFY(QChar::category(0xdc00u) == QChar::Other_Surrogate);
QVERIFY(QChar::category(0xdc01u) == QChar::Other_Surrogate);
- QVERIFY(QChar::category((uint)0x10fffdu) == QChar::Other_PrivateUse);
- QVERIFY(QChar::category((uint)0x110000u) == QChar::NoCategory);
-
QVERIFY(QChar::category((uint)0x1aff) == QChar::Other_NotAssigned);
+ QVERIFY(QChar::category((uint)0x10fffdu) == QChar::Other_PrivateUse);
QVERIFY(QChar::category((uint)0x10ffffu) == QChar::Other_NotAssigned);
+ QVERIFY(QChar::category((uint)0x110000u) == QChar::Other_NotAssigned);
}
void tst_QChar::direction()