Index: src/libchcore/Tests/TestsTString.cpp =================================================================== diff -u -N -r9545b48aadb1592a5bf22ac5a227b1666d7710c6 -rd56d66c19fc54562eb0c8e54bc6acff1e7eb4ef8 --- src/libchcore/Tests/TestsTString.cpp (.../TestsTString.cpp) (revision 9545b48aadb1592a5bf22ac5a227b1666d7710c6) +++ src/libchcore/Tests/TestsTString.cpp (.../TestsTString.cpp) (revision d56d66c19fc54562eb0c8e54bc6acff1e7eb4ef8) @@ -597,3 +597,13 @@ EXPECT_EQ(strValue.GetLength(), 11); } + +// corner cases and detected bugs +TEST(TStringTests, AssignEmptyStringToAlreadyInitializedTString) +{ + TString strValue(_T("Some string")); + + // with this we had infinite recurrence + EXPECT_NO_THROW(strValue = _T("")); + EXPECT_EQ(strValue, _T("")); +}