diff options
Diffstat (limited to 'tests/auto/corelib/tools')
-rw-r--r-- | tests/auto/corelib/tools/qstring/tst_qstring.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/auto/corelib/tools/qstring/tst_qstring.cpp b/tests/auto/corelib/tools/qstring/tst_qstring.cpp index 98af7748c5..90cd70f43e 100644 --- a/tests/auto/corelib/tools/qstring/tst_qstring.cpp +++ b/tests/auto/corelib/tools/qstring/tst_qstring.cpp @@ -2994,6 +2994,12 @@ void tst_QString::remove_string() QString s5 = string; s5.replace( QRegExp(before, cs, QRegExp::FixedString), after ); QTEST( s5, "result" ); + + if (QtPrivate::isLatin1(before)) { + QString s6 = string; + s6.remove( QLatin1String(before.toLatin1()), cs ); + QTEST( s6, "result" ); + } } else { QCOMPARE( 0, 0 ); // shut Qt Test } |