From 2b31994ce0c628e6026dae0796750b900bf3e974 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Sat, 26 Sep 2015 21:41:50 -0400 Subject: [PATCH] Test: Added more ISO601d tests --- test/iso8601d.t.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test/iso8601d.t.cpp b/test/iso8601d.t.cpp index 1211fb5f9..b19bff0d8 100644 --- a/test/iso8601d.t.cpp +++ b/test/iso8601d.t.cpp @@ -71,7 +71,7 @@ void testParse ( //////////////////////////////////////////////////////////////////////////////// int main (int argc, char** argv) { - UnitTest t (827); + UnitTest t (828); ISO8601d iso; std::string::size_type start = 0; @@ -218,6 +218,9 @@ int main (int argc, char** argv) try { + ISO8601d now; + t.ok (now.toISO ().find ("1969") == std::string::npos, "'now' != 1969"); + // Leap year. t.ok (ISO8601d::leapYear (2008), "2008 is a leap year"); t.notok (ISO8601d::leapYear (2007), "2007 is not a leap year");