diff options
author | Jani Heikkinen <jani.heikkinen@qt.io> | 2021-08-24 12:29:55 +0300 |
---|---|---|
committer | Jani Heikkinen <jani.heikkinen@qt.io> | 2021-08-25 07:24:45 +0300 |
commit | f90c1a2b54b72a9455cf952ceb0250ffc7e0d648 (patch) | |
tree | 92ec377f069006743f8c3d69a81beb174342eec3 | |
parent | 8320a92141b736683bb3372f754375cb52836f5d (diff) |
Adjust tst_qstringapisymmetry test data
This change removes test rows which starts failing after
reverting commit be83ff65c424cff1. These rows were added
as a part of commit ce0b76731042412a0fa5a5f6 which can't
be reverted anymore.
Fixing failing tests isn't possible because expected
outcomes in tst_QStringApiSymmetry::indexOf_regexp_QStringView
and tst_QStringApiSymmetry::indexOf_regexp_QString seems
to be different in some cases after the revert. So dropping
those few test cases seems to be only option.
Fixes: QTBUG-94215
Change-Id: I2bee20e622d6a8652a03c9623d18c228d694992a
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
-rw-r--r-- | tests/auto/corelib/text/qstringapisymmetry/tst_qstringapisymmetry.cpp | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/tests/auto/corelib/text/qstringapisymmetry/tst_qstringapisymmetry.cpp b/tests/auto/corelib/text/qstringapisymmetry/tst_qstringapisymmetry.cpp index 58a3b56b68..41af36a330 100644 --- a/tests/auto/corelib/text/qstringapisymmetry/tst_qstringapisymmetry.cpp +++ b/tests/auto/corelib/text/qstringapisymmetry/tst_qstringapisymmetry.cpp @@ -2532,12 +2532,6 @@ void tst_QStringApiSymmetry::indexOf_contains_lastIndexOf_count_regexp_data() << rightFrom << lastIndexOf; }; - - ROW("", "", QRegularExpression::NoPatternOption, 0, 0, 1, -1, 0); - ROW("test", "", QRegularExpression::NoPatternOption, 0, 0, 5, -1, 4); - ROW("", "^", QRegularExpression::NoPatternOption, 0, 0, 1, -1, 0); - ROW("", "$", QRegularExpression::NoPatternOption, 0, 0, 1, -1, 0); - ROW("", "^$", QRegularExpression::NoPatternOption, 0, 0, 1, -1, 0); ROW("", "x", QRegularExpression::NoPatternOption, 0, -1, 0, -1, -1); ROW("", "^x", QRegularExpression::NoPatternOption, 0, -1, 0, -1, -1); ROW("", "x$", QRegularExpression::NoPatternOption, 0, -1, 0, -1, -1); @@ -2563,7 +2557,6 @@ void tst_QStringApiSymmetry::indexOf_contains_lastIndexOf_count_regexp_data() ROW("test", "t", QRegularExpression::NoPatternOption, 0, 0, 2, 0, 0); ROW("test", "t", QRegularExpression::NoPatternOption, 0, 0, 2, 1, 0); ROW("test", "t", QRegularExpression::NoPatternOption, 0, 0, 2, -1, 3); - ROW("test", "t", QRegularExpression::NoPatternOption, 0, 0, 2, -2, 3); ROW("test", "t", QRegularExpression::NoPatternOption, 0, 0, 2, -3, 0); ROW("test", "^es", QRegularExpression::NoPatternOption, 0, -1, 0, -1, -1); @@ -2579,7 +2572,6 @@ void tst_QStringApiSymmetry::indexOf_contains_lastIndexOf_count_regexp_data() ROW("test", "e.*t", QRegularExpression::NoPatternOption, 0, 1, 1, -1, 1); ROW("test", "e.*t", QRegularExpression::NoPatternOption, 0, 1, 1, -2, 1); ROW("test", "e.*t", QRegularExpression::NoPatternOption, 0, 1, 1, -3, 1); - ROW("test", "e.*t", QRegularExpression::NoPatternOption, 0, 1, 1, -4, 1); ROW("test", "e.*t", QRegularExpression::NoPatternOption, 0, 1, 1, -5, -1); ROW("test", "e.*t$", QRegularExpression::NoPatternOption, 0, 1, 1, -1, 1); ROW("test", "e.*t$", QRegularExpression::NoPatternOption, 0, 1, 1, -2, 1); @@ -2589,11 +2581,8 @@ void tst_QStringApiSymmetry::indexOf_contains_lastIndexOf_count_regexp_data() ROW("test", "t.*t", QRegularExpression::NoPatternOption, 0, 0, 1, -2, 0); ROW("test", "st", QRegularExpression::NoPatternOption, 0, 2, 1, -1, 2); ROW("test", "st", QRegularExpression::NoPatternOption, 0, 2, 1, -2, 2); - ROW("test", "st", QRegularExpression::NoPatternOption, 0, 2, 1, -3, 2); ROW("test", "st", QRegularExpression::NoPatternOption, 0, 2, 1, -4, -1); - ROW("", "", QRegularExpression::CaseInsensitiveOption, 0, 0, 1, -1, 0); - ROW("test", "", QRegularExpression::CaseInsensitiveOption, 0, 0, 5, -1, 4); ROW("test", "^", QRegularExpression::CaseInsensitiveOption, 0, 0, 1, -1, 0); ROW("test", "^t", QRegularExpression::CaseInsensitiveOption, 0, 0, 1, -1, 0); ROW("TEST", "^t", QRegularExpression::CaseInsensitiveOption, 0, 0, 1, -1, 0); @@ -2606,11 +2595,9 @@ void tst_QStringApiSymmetry::indexOf_contains_lastIndexOf_count_regexp_data() ROW("testtest", "e", QRegularExpression::NoPatternOption, 0, 1, 2, -1, 5); ROW("testtest", "e", QRegularExpression::NoPatternOption, 0, 1, 2, -2, 5); ROW("testtest", "e", QRegularExpression::NoPatternOption, 0, 1, 2, -3, 5); - ROW("testtest", "e", QRegularExpression::NoPatternOption, 0, 1, 2, -4, 5); ROW("testtest", "e", QRegularExpression::NoPatternOption, 0, 1, 2, -5, 1); ROW("testtest", "e", QRegularExpression::NoPatternOption, 0, 1, 2, -6, 1); ROW("testtest", "e", QRegularExpression::NoPatternOption, 0, 1, 2, -7, 1); - ROW("testtest", "e", QRegularExpression::NoPatternOption, 0, 1, 2, -8, 1); ROW("testtest", "es", QRegularExpression::NoPatternOption, 0, 1, 2, -1, 5); ROW("testtest", "e.*s", QRegularExpression::NoPatternOption, 0, 1, 2, -1, 1); @@ -2621,7 +2608,6 @@ void tst_QStringApiSymmetry::indexOf_contains_lastIndexOf_count_regexp_data() ROW("testtest", "es", QRegularExpression::NoPatternOption, 2, 5, 1, -1, 5); ROW("testtest", "es", QRegularExpression::NoPatternOption, 2, 5, 1, -2, 5); ROW("testtest", "es", QRegularExpression::NoPatternOption, 2, 5, 1, -3, 5); - ROW("testtest", "es", QRegularExpression::NoPatternOption, 2, 5, 1, -4, 5); ROW("testtest", "es", QRegularExpression::NoPatternOption, 2, 5, 1, -5, 1); ROW("testtest", "e.*s", QRegularExpression::NoPatternOption, 2, 5, 1, -1, 1); |