Restore commented-out code in QByteArray test.
The restored code was inexplicably commented-out by commit d57aec33 (non-public history), which was only supposed to be changing upper-case booleans to lower-case. Change-Id: I1581fc89511f600c614871e1aec6bc030cddf40e Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
This commit is contained in:
parent
1825c9aefc
commit
72c36332c1
@ -1206,12 +1206,12 @@ void tst_QByteArray::toFromHex()
|
||||
void tst_QByteArray::toFromPercentEncoding()
|
||||
{
|
||||
QByteArray arr("Qt is great!");
|
||||
/*
|
||||
|
||||
QByteArray data = arr.toPercentEncoding();
|
||||
QCOMPARE(QString(data), QString("Qt%20is%20great%21"));
|
||||
QCOMPARE(QByteArray::fromPercentEncoding(data), arr);
|
||||
*/
|
||||
QByteArray data = arr.toPercentEncoding("! ", "Qt");
|
||||
|
||||
data = arr.toPercentEncoding("! ", "Qt");
|
||||
QCOMPARE(QString(data), QString("%51%74 is grea%74!"));
|
||||
QCOMPARE(QByteArray::fromPercentEncoding(data), arr);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user