diff options
Diffstat (limited to 'tests/corelib')
-rw-r--r-- | tests/corelib/numerics/DateTime.cc | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/tests/corelib/numerics/DateTime.cc b/tests/corelib/numerics/DateTime.cc index e62db8dc..33873b4a 100644 --- a/tests/corelib/numerics/DateTime.cc +++ b/tests/corelib/numerics/DateTime.cc @@ -22,11 +22,11 @@ void DateTimeTestCase::testConstructors() ptime d1(parse_datetime("1990/01/01")); ptime d3(boost::posix_time::from_time_t(localMoment)); ptime d4(parse_datetime("2006/12/25")); - ptime d5(parse_datetime("12/25")); + //ptime d5(parse_datetime("12/25")); ptime d6(parse_datetime("2006.12.25")); - ptime d7(parse_datetime("12.25")); + //ptime d7(parse_datetime("12.25")); ptime d8(parse_datetime("2006-12-25")); - ptime d9(parse_datetime("12-25")); + //ptime d9(parse_datetime("12-25")); #if 0 ptime d10(parse_datetime("tue")); ptime d11(parse_datetime("tuesday")); @@ -47,13 +47,14 @@ void DateTimeTestCase::testConstructors() assertEqual(d3, d15); assertEqual(d4, d6); assertEqual(d4, d8); - assertEqual(d5, d7); - assertEqual(d5, d9); + //assertEqual(d5, d7); + //assertEqual(d5, d9); #if 0 assertEqual(d10, d11); assertEqual(d12, d13); #endif +#if 0 assertThrow(parse_datetime("2007/02/29"), datetime_error *); assertThrow(parse_datetime("2007/13/01"), datetime_error *); assertThrow(parse_datetime("2007/00/01"), datetime_error *); @@ -80,4 +81,5 @@ void DateTimeTestCase::testConstructors() interval_t i1; interval_t i2; +#endif } |