diff --git a/tests/auto/core5/text/qstringref/tst_qstringref.cpp b/tests/auto/core5/text/qstringref/tst_qstringref.cpp index 59b5db79..b020532 100644 --- a/tests/auto/core5/text/qstringref/tst_qstringref.cpp +++ b/tests/auto/core5/text/qstringref/tst_qstringref.cpp @@ -497,12 +497,12 @@ void tst_QStringRef::lastIndexOf_data() QTest::newRow("10") << a << "G" << -1 << int(a.size())-1 << true; QTest::newRow("11") << a << "G" << int(a.size())-1 << int(a.size())-1 << true; - QTest::newRow("12") << a << "G" << int(a.size()) << -1 << true; + QTest::newRow("12") << a << "G" << int(a.size()) << int(a.size())-1 << true; QTest::newRow("13") << a << "A" << 0 << 0 << true; QTest::newRow("14") << a << "A" << -1*int(a.size()) << 0 << true; QTest::newRow("15") << a << "efg" << 0 << -1 << false; - QTest::newRow("16") << a << "efg" << int(a.size()) << -1 << false; + QTest::newRow("16") << a << "efg" << int(a.size()) << 12 << false; QTest::newRow("17") << a << "efg" << -1 * int(a.size()) << -1 << false; QTest::newRow("19") << a << "efg" << int(a.size()) - 1 << 12 << false; QTest::newRow("20") << a << "efg" << 12 << 12 << false;