From: Vadim Zeitlin Date: Wed, 23 Jun 2004 21:54:34 +0000 (+0000) Subject: added Set(jdn) test X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/e35594251f9a1fd107389f6d0cc06e58932dbc92?ds=inline added Set(jdn) test git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27984 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/tests/datetime/datetime.cpp b/tests/datetime/datetime.cpp index 0911d9b04f..02a04c3f60 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 ); } }