X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1f29ecb357dd7b6ce1cf8f04a832e7300dff5293..d6256ab96d1058968e01a81ae9b782bf20a2ff27:/tests/datetime/datetimetest.cpp diff --git a/tests/datetime/datetimetest.cpp b/tests/datetime/datetimetest.cpp index 65375c0896..3850715300 100644 --- a/tests/datetime/datetimetest.cpp +++ b/tests/datetime/datetimetest.cpp @@ -1043,6 +1043,10 @@ void DateTimeTestCase::TestDateParse() ); } } + + // Check that incomplete parse works correctly. + const char* p = dt.ParseFormat("2012-03-23 12:34:56", "%Y-%m-%d"); + CPPUNIT_ASSERT_EQUAL( " 12:34:56", wxString(p) ); } void DateTimeTestCase::TestDateParseISO()