X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ccd6aacd5dce43fd10cb49aa1908d8386c17688c..a87bf37838e09fb4634a887cc8a6055104b49a01:/tests/datetime/datetime.cpp diff --git a/tests/datetime/datetime.cpp b/tests/datetime/datetime.cpp index 0911d9b04f..c45e0ffacd 100644 --- a/tests/datetime/datetime.cpp +++ b/tests/datetime/datetime.cpp @@ -212,6 +212,9 @@ void DateTimeTestCase::TestTimeJDN() double jdn = dt.GetJulianDayNumber(); CPPUNIT_ASSERT( jdn == d.jdn ); + + dt.Set(jdn); + CPPUNIT_ASSERT( dt.GetJulianDayNumber() == jdn ); } } @@ -322,8 +325,6 @@ for n in range(20): { { 3, wxDateTime::Dec, 2074 }, -5, wxDateTime::Mon, wxDateTime::Dec, 2074 }, }; - static const wxChar *fmt = _T("%d-%b-%Y"); - wxDateTime dt; for ( n = 0; n < WXSIZEOF(weekDatesTestData); n++ ) {