summaryrefslogtreecommitdiffstats
path: root/tests/auto/corelib/tools/qstringref
diff options
context:
space:
mode:
authorJason McDonald <jason.mcdonald@nokia.com>2011-11-07 19:19:27 +1000
committerQt by Nokia <qt-info@nokia.com>2011-11-10 04:42:45 +0100
commit8e11f7c93a1f7df0d10e2f851283c825ca39b75b (patch)
tree6f02b39217acd9fb9c033fbe908b8ebb1859896a /tests/auto/corelib/tools/qstringref
parent2cd47107155fc251747028b9b0ae6d2c9e69e06c (diff)
Cleanup corelib autotests
Remove literal tabs. Change-Id: I210a0259773cceb20d35ebc80b889e3ebb88b540 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.cpp28
1 files changed, 14 insertions, 14 deletions
diff --git a/tests/auto/corelib/tools/qstringref/tst_qstringref.cpp b/tests/auto/corelib/tools/qstringref/tst_qstringref.cpp
index 7b0009fc6e..305439ed11 100644
--- a/tests/auto/corelib/tools/qstringref/tst_qstringref.cpp
+++ b/tests/auto/corelib/tools/qstringref/tst_qstringref.cpp
@@ -410,20 +410,20 @@ void tst_QStringRef::indexOf2()
QCOMPARE(haystackRef.indexOf(needle, 0, Qt::CaseInsensitive), resultpos);
QCOMPARE(haystackRef.indexOf(needleRef, 0, Qt::CaseInsensitive), resultpos);
if (needle.length() > 0) {
- got = haystackRef.lastIndexOf(needle, -1, Qt::CaseSensitive);
- QVERIFY(got == resultpos || (resultpos >= 0 && got >= resultpos));
- got = haystackRef.lastIndexOf(needle, -1, Qt::CaseInsensitive);
- QVERIFY(got == resultpos || (resultpos >= 0 && got >= resultpos));
-
- got = haystack.lastIndexOf(needleRef, -1, Qt::CaseSensitive);
- QVERIFY(got == resultpos || (resultpos >= 0 && got >= resultpos));
- got = haystack.lastIndexOf(needleRef, -1, Qt::CaseInsensitive);
- QVERIFY(got == resultpos || (resultpos >= 0 && got >= resultpos));
-
- got = haystackRef.lastIndexOf(needleRef, -1, Qt::CaseSensitive);
- QVERIFY(got == resultpos || (resultpos >= 0 && got >= resultpos));
- got = haystackRef.lastIndexOf(needleRef, -1, Qt::CaseInsensitive);
- QVERIFY(got == resultpos || (resultpos >= 0 && got >= resultpos));
+ got = haystackRef.lastIndexOf(needle, -1, Qt::CaseSensitive);
+ QVERIFY(got == resultpos || (resultpos >= 0 && got >= resultpos));
+ got = haystackRef.lastIndexOf(needle, -1, Qt::CaseInsensitive);
+ QVERIFY(got == resultpos || (resultpos >= 0 && got >= resultpos));
+
+ got = haystack.lastIndexOf(needleRef, -1, Qt::CaseSensitive);
+ QVERIFY(got == resultpos || (resultpos >= 0 && got >= resultpos));
+ got = haystack.lastIndexOf(needleRef, -1, Qt::CaseInsensitive);
+ QVERIFY(got == resultpos || (resultpos >= 0 && got >= resultpos));
+
+ got = haystackRef.lastIndexOf(needleRef, -1, Qt::CaseSensitive);
+ QVERIFY(got == resultpos || (resultpos >= 0 && got >= resultpos));
+ got = haystackRef.lastIndexOf(needleRef, -1, Qt::CaseInsensitive);
+ QVERIFY(got == resultpos || (resultpos >= 0 && got >= resultpos));
}
}