]> git.saurik.com Git - wxWidgets.git/commitdiff
added test for Replace(whatever, "")
authorVadim Zeitlin <vadim@wxwidgets.org>
Sat, 9 Aug 2008 15:50:24 +0000 (15:50 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sat, 9 Aug 2008 15:50:24 +0000 (15:50 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55032 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

tests/strings/strings.cpp

index 09e0dca52c890cff5a8809f7ccdcdf738a344068..0967c6249a27b4e2e2d931a42a9ca0c64bcfecc4 100644 (file)
@@ -333,6 +333,8 @@ void StringTestCase::Replace()
     TEST_WXREPLACE( _T("null\0dehar"), 10, _T("de"), _T("c"), true,
                           _T("null\0char"), 9 );
 
+    TEST_WXREPLACE( "life", 4, "f", "", false, "lie", 3 );
+
     #undef TEST_WXREPLACE
     #undef TEST_NULLCHARREPLACE
     #undef TEST_REPLACE