X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/52dc2108ae52f9cc997fc80e2b2b0b399b9581ef..f17ac57417530febd2c48bbb6c82004cb23d108c:/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()