| 49 | |
| 50 | Y_UNIT_TEST_SUITE(TestSprintDate) { |
| 51 | Y_UNIT_TEST(Year9999) { |
| 52 | struct tm t; |
| 53 | t.tm_year = 9999 - 1900; |
| 54 | t.tm_mday = 1; |
| 55 | t.tm_mon = 10; |
| 56 | |
| 57 | char buf[DATE_BUF_LEN]; |
| 58 | DateToString(buf, t); |
| 59 | |
| 60 | TString expectedDate = "99991101"; |
| 61 | |
| 62 | UNIT_ASSERT_VALUES_EQUAL(expectedDate, ToString(buf)); |
| 63 | } |
| 64 | Y_UNIT_TEST(YearAfter9999) { |
| 65 | struct tm t; |
| 66 | t.tm_year = 123456 - 1900; |
nothing calls this directly
no test coverage detected