]> git.saurik.com Git - wxWidgets.git/commitdiff
test if wxString(NULL) ctor creates empty string
authorVáclav Slavík <vslavik@fastmail.fm>
Thu, 31 May 2007 11:00:06 +0000 (11:00 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Thu, 31 May 2007 11:00:06 +0000 (11:00 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46255 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

tests/strings/strings.cpp

index 94d9d7f113158658f0fdf5ab00b9ba72fcab4230..9c913cc0dc245a028fe02c0b93a523e9e9edae39 100644 (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), "");
 }