summaryrefslogtreecommitdiffstats
path: root/tests/auto/corelib/tools/qstringref
diff options
context:
space:
mode:
authorJason McDonald <jason.mcdonald@nokia.com>2012-02-14 11:52:40 +1000
committerQt by Nokia <qt-info@nokia.com>2012-02-14 06:19:16 +0100
commitab9be7cc23e52c2b5a43c66ec53bcb961188f924 (patch)
tree1586575ae8d7a78d412eaf03f2be2e1a93e2ec1c /tests/auto/corelib/tools/qstringref
parent1cda7678a61cb5807d73a06e96fdc3068001d9fb (diff)
Eliminate duplicate data row names from corelib autotests.
Change-Id: I57a37f19746b76c6c9c3534f5c66c5a5478dae24 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.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/tests/auto/corelib/tools/qstringref/tst_qstringref.cpp b/tests/auto/corelib/tools/qstringref/tst_qstringref.cpp
index 77d2101320..de01df2001 100644
--- a/tests/auto/corelib/tools/qstringref/tst_qstringref.cpp
+++ b/tests/auto/corelib/tools/qstringref/tst_qstringref.cpp
@@ -288,7 +288,7 @@ void tst_QStringRef::indexOf_data()
QTest::newRow("BoyerMooreStressTest4") << veryBigHaystack << veryBigHaystack + 'c' << 0 << true << -1;
QTest::newRow("BoyerMooreStressTest5") << veryBigHaystack << 'c' + veryBigHaystack << 0 << true << -1;
QTest::newRow("BoyerMooreStressTest6") << 'd' + veryBigHaystack << 'c' + veryBigHaystack << 0 << true << -1;
- QTest::newRow("BoyerMooreStressTest6") << veryBigHaystack + 'c' << 'c' + veryBigHaystack << 0 << true << -1;
+ QTest::newRow("BoyerMooreStressTest7") << veryBigHaystack + 'c' << 'c' + veryBigHaystack << 0 << true << -1;
QTest::newRow("BoyerMooreInsensitiveStressTest") << veryBigHaystack << veryBigHaystack << 0 << false << 0;
@@ -441,15 +441,15 @@ void tst_QStringRef::lastIndexOf_data()
QTest::newRow("4") << a << "G" << 14 << 14 << true;
QTest::newRow("5") << a << "G" << 13 << 11 << true;
QTest::newRow("6") << a << "B" << a.size() - 1 << 1 << true;
- QTest::newRow("6") << a << "B" << - 1 << 1 << true;
- QTest::newRow("7") << a << "B" << 1 << 1 << true;
- QTest::newRow("8") << a << "B" << 0 << -1 << true;
+ QTest::newRow("7") << a << "B" << - 1 << 1 << true;
+ QTest::newRow("8") << a << "B" << 1 << 1 << true;
+ QTest::newRow("9") << a << "B" << 0 << -1 << true;
- QTest::newRow("9") << a << "G" << -1 << a.size()-1 << true;
- QTest::newRow("10") << a << "G" << a.size()-1 << a.size()-1 << true;
- QTest::newRow("11") << a << "G" << a.size() << -1 << true;
- QTest::newRow("12") << a << "A" << 0 << 0 << true;
- QTest::newRow("13") << a << "A" << -1*a.size() << 0 << true;
+ QTest::newRow("10") << a << "G" << -1 << a.size()-1 << true;
+ QTest::newRow("11") << a << "G" << a.size()-1 << a.size()-1 << true;
+ QTest::newRow("12") << a << "G" << a.size() << -1 << true;
+ QTest::newRow("13") << a << "A" << 0 << 0 << true;
+ QTest::newRow("14") << a << "A" << -1*a.size() << 0 << true;
QTest::newRow("15") << a << "efg" << 0 << -1 << false;
QTest::newRow("16") << a << "efg" << a.size() << -1 << false;
@@ -777,8 +777,8 @@ void tst_QStringRef::compare_data()
// different length
QTest::newRow("data6") << QString("abcdef") << QString("abc") << 1 << 1;
- QTest::newRow("data6") << QString("abCdef") << QString("abc") << -1 << 1;
- QTest::newRow("data7") << QString("abc") << QString("abcdef") << -1 << -1;
+ QTest::newRow("data7") << QString("abCdef") << QString("abc") << -1 << 1;
+ QTest::newRow("data8") << QString("abc") << QString("abcdef") << -1 << -1;
QString upper;
upper += QChar(QChar::highSurrogate(0x10400));
@@ -786,7 +786,7 @@ void tst_QStringRef::compare_data()
QString lower;
lower += QChar(QChar::highSurrogate(0x10428));
lower += QChar(QChar::lowSurrogate(0x10428));
- QTest::newRow("data8") << upper << lower << -1 << 0;
+ QTest::newRow("data9") << upper << lower << -1 << 0;
}
static bool isLatin(const QString &s)