OSDN Git Service
(root)
/
kde
/
Katie.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c5ddbb8
)
correct and verify codepoint conversion in tst_QChar::normalization_data()
author
Ivailo Monev
<xakepa10@laimg.moc>
Tue, 24 Dec 2019 22:23:15 +0000
(22:23 +0000)
committer
Ivailo Monev
<xakepa10@laimg.moc>
Tue, 24 Dec 2019 22:23:15 +0000
(22:23 +0000)
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
tests/auto/qchar/tst_qchar.cpp
patch
|
blob
|
history
diff --git
a/tests/auto/qchar/tst_qchar.cpp
b/tests/auto/qchar/tst_qchar.cpp
index
cb656db
..
445dfd6
100644
(file)
--- a/
tests/auto/qchar/tst_qchar.cpp
+++ b/
tests/auto/qchar/tst_qchar.cpp
@@
-517,7
+517,8
@@
void tst_QChar::normalization_data()
for (int j = 0; j < c.size(); ++j) {
bool ok;
- uint uc = c.at(j).toInt(&ok, 16);
+ uint uc = c.at(j).toUInt(&ok, 16);
+ QVERIFY(ok);
if (!QChar::requiresSurrogates(uc)) {
columns[i].append(QChar(uc));
} else {