summaryrefslogtreecommitdiffstats
path: root/tests/auto/corelib/tools/qstringref
diff options
context:
space:
mode:
authorJason McDonald <jason.mcdonald@nokia.com>2011-11-21 15:48:52 +1000
committerQt by Nokia <qt-info@nokia.com>2011-11-22 00:33:27 +0100
commite026cbefc6b68079ad5b9873ced4750d0dd32816 (patch)
tree0e3c3c33e018164f10867a16db94be75f615a49e /tests/auto/corelib/tools/qstringref
parentf9111355f27027a5458c589d8b80661dbde7cad4 (diff)
Remove obsolete data from QStringRef test.
The removed data was copied from the QString test (from which it has since been removed) and wasn't valid, as comments indicated. Change-Id: I44f066e41d28333326ad97f652c0a6813a173f15 Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
Diffstat (limited to 'tests/auto/corelib/tools/qstringref')
-rw-r--r--tests/auto/corelib/tools/qstringref/tst_qstringref.cpp9
1 files changed, 0 insertions, 9 deletions
diff --git a/tests/auto/corelib/tools/qstringref/tst_qstringref.cpp b/tests/auto/corelib/tools/qstringref/tst_qstringref.cpp
index 305439ed11..23cd3fb889 100644
--- a/tests/auto/corelib/tools/qstringref/tst_qstringref.cpp
+++ b/tests/auto/corelib/tools/qstringref/tst_qstringref.cpp
@@ -790,15 +790,6 @@ void tst_QStringRef::compare_data()
lower += QChar(QChar::highSurrogate(0x10428));
lower += QChar(QChar::lowSurrogate(0x10428));
QTest::newRow("data8") << upper << lower << -1 << 0;
-
- // embedded nulls
- // These don't work as of now. It's OK that these don't work since \0 is not a valid unicode
- /*QTest::newRow("data9") << QString(QByteArray("\0", 1)) << QString(QByteArray("\0", 1)) << 0 << 0;
- QTest::newRow("data10") << QString(QByteArray("\0", 1)) << QString("") << 1 << 1;
- QTest::newRow("data11") << QString("") << QString(QByteArray("\0", 1)) << -1 << -1;
- QTest::newRow("data12") << QString("ab\0c") << QString(QByteArray("ab\0c", 4)) << 0 << 0;
- QTest::newRow("data13") << QString(QByteArray("ab\0c", 4)) << QString("abc") << -1 << -1;
- QTest::newRow("data14") << QString("abc") << QString(QByteArray("ab\0c", 4)) << 1 << 1;*/
}
static bool isLatin(const QString &s)