Fix wxDateTime unit test after the changes of r71430.
Don't test the return value of ParseFormat(wxCStrData) any more as this function is void now. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71431 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -839,23 +839,23 @@ void DateTimeTestCase::TestTimeFormat()
|
||||
CPPUNIT_ASSERT( !dt.ParseFormat("foo") );
|
||||
CPPUNIT_ASSERT( !dt.ParseFormat(wxT("foo")) );
|
||||
CPPUNIT_ASSERT( !dt.ParseFormat(s) );
|
||||
CPPUNIT_ASSERT( !dt.ParseFormat(s.c_str()) );
|
||||
dt.ParseFormat(s.c_str()); // Simply test compilation of this one.
|
||||
|
||||
CPPUNIT_ASSERT( !dt.ParseFormat("foo", "%c") );
|
||||
CPPUNIT_ASSERT( !dt.ParseFormat(wxT("foo"), "%c") );
|
||||
CPPUNIT_ASSERT( !dt.ParseFormat(s, "%c") );
|
||||
CPPUNIT_ASSERT( !dt.ParseFormat(s.c_str(), "%c") );
|
||||
dt.ParseFormat(s.c_str(), "%c");
|
||||
|
||||
CPPUNIT_ASSERT( !dt.ParseFormat("foo", wxT("%c")) );
|
||||
CPPUNIT_ASSERT( !dt.ParseFormat(wxT("foo"), wxT("%c")) );
|
||||
CPPUNIT_ASSERT( !dt.ParseFormat(s, "%c") );
|
||||
CPPUNIT_ASSERT( !dt.ParseFormat(s.c_str(), wxT("%c")) );
|
||||
dt.ParseFormat(s.c_str(), wxT("%c"));
|
||||
|
||||
wxString spec("%c");
|
||||
CPPUNIT_ASSERT( !dt.ParseFormat("foo", spec) );
|
||||
CPPUNIT_ASSERT( !dt.ParseFormat(wxT("foo"), spec) );
|
||||
CPPUNIT_ASSERT( !dt.ParseFormat(s, spec) );
|
||||
CPPUNIT_ASSERT( !dt.ParseFormat(s.c_str(), spec) );
|
||||
dt.ParseFormat(s.c_str(), spec);
|
||||
}
|
||||
|
||||
void DateTimeTestCase::TestTimeSpanFormat()
|
||||
|
Reference in New Issue
Block a user