summaryrefslogtreecommitdiff
path: root/tools/qa
diff options
context:
space:
mode:
Diffstat (limited to 'tools/qa')
-rw-r--r--tools/qa/cppunit/test_date.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/qa/cppunit/test_date.cxx b/tools/qa/cppunit/test_date.cxx
index c2c31e10b51c..2ea3673082a2 100644
--- a/tools/qa/cppunit/test_date.cxx
+++ b/tools/qa/cppunit/test_date.cxx
@@ -61,6 +61,10 @@ void DateTest::testDate()
aDate.Normalize();
CPPUNIT_ASSERT_EQUAL( aMax.GetDate(), aDate.GetDate());
+ // Empty date is not a valid date.
+ aDate = Date( Date::EMPTY );
+ CPPUNIT_ASSERT( !aDate.IsValidDate());
+
// 0001-00-x normalized to -0001-12-x
aDate.SetYear(1);
aDate.SetMonth(0);