| 18 | } |
| 19 | |
| 20 | void AssertStructTmEqual(const TString& marker, const struct tm& tmt, const NDatetime::TSimpleTM& tms) { |
| 21 | UNIT_ASSERT_VALUES_EQUAL_C((int)tms.Sec, tmt.tm_sec, marker); |
| 22 | UNIT_ASSERT_VALUES_EQUAL_C((int)tms.Min, tmt.tm_min, marker); |
| 23 | UNIT_ASSERT_VALUES_EQUAL_C((int)tms.Hour, tmt.tm_hour, marker); |
| 24 | UNIT_ASSERT_VALUES_EQUAL_C((int)tms.WDay, tmt.tm_wday, marker); |
| 25 | UNIT_ASSERT_VALUES_EQUAL_C((int)tms.MDay, tmt.tm_mday, marker); |
| 26 | UNIT_ASSERT_VALUES_EQUAL_C((int)tms.Mon, tmt.tm_mon, marker); |
| 27 | UNIT_ASSERT_VALUES_EQUAL_C((int)tms.YDay, tmt.tm_yday, marker); |
| 28 | UNIT_ASSERT_VALUES_EQUAL_C((int)tms.Year, tmt.tm_year, marker); |
| 29 | UNIT_ASSERT_VALUES_EQUAL_C((int)tms.IsDst, tmt.tm_isdst, marker); |
| 30 | #ifndef _win_ |
| 31 | UNIT_ASSERT_VALUES_EQUAL_C((int)tms.GMTOff, tmt.tm_gmtoff, marker); |
| 32 | #endif |
| 33 | } |
| 34 | |
| 35 | void AssertSimpleTM(const TString& mark, |
| 36 | const NDatetime::TSimpleTM& tms, |
no outgoing calls
no test coverage detected