test if wxString(NULL) ctor creates empty string

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46255 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Václav Slavík
2007-05-31 11:00:06 +00:00
parent a1eb65c246
commit 7652a41dc7

View File

@@ -171,6 +171,9 @@ void StringTestCase::Constructors()
const wxChar *start = wxStrchr(s, _T('r'));
const wxChar *end = wxStrchr(s, _T('!'));
TEST_CTOR((start, end), _T("really"));
// test if creating string from NULL C pointer works:
TEST_CTOR(((char*)NULL), "");
}