]> git.saurik.com Git - wxWidgets.git/blobdiff - tests/datetime/datetimetest.cpp
Return valid pointers from wxDateTime::ParseXXX() with non-wxString strings.
[wxWidgets.git] / tests / datetime / datetimetest.cpp
index 65375c08961a90618873daad0762edc6080a747b..385071530020a87309690d42e6fc5606d210d149 100644 (file)
@@ -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()