mirror of
https://bitbucket.org/smil3y/katie.git
synced 2025-02-24 19:02:59 +00:00
fix most of the QChar normalization test cases
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
This commit is contained in:
parent
7a82746e1a
commit
201465495e
1 changed files with 2 additions and 10 deletions
|
@ -522,22 +522,14 @@ void tst_QChar::normalization_data()
|
|||
columns[i].append(QChar(uc));
|
||||
} else {
|
||||
// convert to utf16
|
||||
ushort high = QChar::highSurrogate(uc);
|
||||
ushort low = QChar::lowSurrogate(uc);
|
||||
columns[i].append(QChar::highSurrogate(high));
|
||||
columns[i].append(QChar::lowSurrogate(low));
|
||||
columns[i].append(QChar(QChar::highSurrogate(uc)));
|
||||
columns[i].append(QChar(QChar::lowSurrogate(uc)));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
QString nm = QString("line #%1:").arg(linenum);
|
||||
QTest::newRow(nm.toLatin1()) << columns << part;
|
||||
|
||||
// the test depends on ICU being able to normalize the input, it may
|
||||
// not be the case with old versions thus only the first 10k are tested
|
||||
if (linenum > 10000) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue