]> git.saurik.com Git - wxWidgets.git/commitdiff
added Set(jdn) test
authorVadim Zeitlin <vadim@wxwidgets.org>
Wed, 23 Jun 2004 21:54:34 +0000 (21:54 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Wed, 23 Jun 2004 21:54:34 +0000 (21:54 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27984 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

tests/datetime/datetime.cpp

index 0911d9b04f1166d38ca64aa52a387ad299b4122d..02a04c3f609792861fe406f42240ccf56b325d8b 100644 (file)
@@ -212,6 +212,9 @@ void DateTimeTestCase::TestTimeJDN()
         double jdn = dt.GetJulianDayNumber();
 
         CPPUNIT_ASSERT( jdn == d.jdn );
+
+        dt.Set(jdn);
+        CPPUNIT_ASSERT( dt.GetJulianDayNumber() == jdn );
     }
 }