| 53 | } |
| 54 | |
| 55 | Y_UNIT_TEST(TestLeap) { |
| 56 | using namespace NDatetime; |
| 57 | UNIT_ASSERT(LeapYearAD(2000)); |
| 58 | UNIT_ASSERT(LeapYearAD(2012)); |
| 59 | UNIT_ASSERT(!LeapYearAD(1999)); |
| 60 | UNIT_ASSERT(LeapYearAD(2004)); |
| 61 | UNIT_ASSERT(!LeapYearAD(1900)); |
| 62 | } |
| 63 | |
| 64 | Y_UNIT_TEST(TestYDayConversion) { |
| 65 | using namespace NDatetime; |
nothing calls this directly
no test coverage detected