diff --git a/autotest/StringMethods/StringMethods.cpp b/autotest/StringMethods/StringMethods.cpp index 040886d53..b36a70e1f 100644 --- a/autotest/StringMethods/StringMethods.cpp +++ b/autotest/StringMethods/StringMethods.cpp @@ -168,11 +168,15 @@ void ATest() ASSERT(x == ~Str("needneneneneetheend.")); x.Replace("end.", ""); ASSERT(x == ~Str("needneneneneethe")); + + x.Replace("", "x"); } CONSOLE_APP_MAIN { StdLogSetup(LOG_COUT|LOG_FILE); + + MemoryLimitKb(1024*1024); ATest(); ASSERT((String().Cat() << 123) == "123");