diff options
Diffstat (limited to 'tests/auto/corelib/text/qstring')
-rw-r--r-- | tests/auto/corelib/text/qstring/tst_qstring.cpp | 10 |
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 e6d73c6ef1..ab118deb90 100644 --- a/tests/auto/corelib/text/qstring/tst_qstring.cpp +++ b/tests/auto/corelib/text/qstring/tst_qstring.cpp @@ -2748,6 +2748,16 @@ void tst_QString::replace_uint_uint_extra() s.replace( 0, 3, smallReplacement ); QCOMPARE( s, smallReplacement ); } + + { + QString s; + s.insert(0, QLatin1String("BBB")); + + auto smallReplacement = QString("C"); + + s.replace( 5, 3, smallReplacement ); + QCOMPARE( s, QLatin1String("BBB") ); + } } void tst_QString::replace_extra() |