summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorSona Kurazyan <sona.kurazyan@qt.io>2022-03-03 17:36:49 +0100
committerSona Kurazyan <sona.kurazyan@qt.io>2022-03-09 15:58:47 +0100
commit82e12c79b2b97bec6b56656c1cb977f2ba942d49 (patch)
tree8e454dc9ce768fa7cb258ced2b0ae39b13db2198 /tests
parent30d28810ee73052338e478a5472933c7b9c7d725 (diff)
Add an overload of QStringView::count() for QLatin1String
Required for the API symmetry between QStringView and QLatin1String. [ChangeLog][QtCore][QStringView] Added an overload of QStringView::count() for QLatin1String. Change-Id: Ic49a4b31e8f6f0969eff0f792654d23a60e06c49 Task-numer: QTBUG-98431 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com> Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/corelib/text/qstringapisymmetry/tst_qstringapisymmetry.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/auto/corelib/text/qstringapisymmetry/tst_qstringapisymmetry.cpp b/tests/auto/corelib/text/qstringapisymmetry/tst_qstringapisymmetry.cpp
index 32d5e014bd..6c90d9ee1b 100644
--- a/tests/auto/corelib/text/qstringapisymmetry/tst_qstringapisymmetry.cpp
+++ b/tests/auto/corelib/text/qstringapisymmetry/tst_qstringapisymmetry.cpp
@@ -738,9 +738,8 @@ private Q_SLOTS:
void count_QStringView_QString_data() { count_data(); }
void count_QStringView_QString() { count_impl<QStringView, QString>(); }
- // TODO: enable when QStringView::count(QLatin1String, ...) is implemented
- // void count_QStringView_QLatin1String_data() { count_data(); }
- // void count_QStringView_QLatin1String() { count_impl<QStringView, QLatin1String>(); }
+ void count_QStringView_QLatin1String_data() { count_data(); }
+ void count_QStringView_QLatin1String() { count_impl<QStringView, QLatin1String>(); }
void count_QStringView_QStringView_data() { count_data(); }
void count_QStringView_QStringView() { count_impl<QStringView, QStringView>(); }
void count_QStringView_QChar_data() { count_data(); }