summaryrefslogtreecommitdiffstats
path: root/tests/auto/corelib/text/qstring
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/corelib/text/qstring')
-rw-r--r--tests/auto/corelib/text/qstring/tst_qstring.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/auto/corelib/text/qstring/tst_qstring.cpp b/tests/auto/corelib/text/qstring/tst_qstring.cpp
index cefcd4f2e5..38df331cc2 100644
--- a/tests/auto/corelib/text/qstring/tst_qstring.cpp
+++ b/tests/auto/corelib/text/qstring/tst_qstring.cpp
@@ -388,6 +388,7 @@ private slots:
void remove_string();
void remove_regexp_data();
void remove_regexp();
+ void remove_extra();
void swap();
void prepend_qstring() { prepend_impl<QString>(); }
@@ -3028,6 +3029,15 @@ void tst_QString::remove_regexp()
}
}
+void tst_QString::remove_extra()
+{
+ {
+ QString s = "The quick brown fox jumps over the lazy dog. "
+ "The lazy dog jumps over the quick brown fox.";
+ s.remove(s);
+ }
+}
+
void tst_QString::toNum()
{
#if defined (Q_OS_WIN) && defined (Q_CC_MSVC)