MCPcopy Create free account
hub / github.com/catboost/catboost / Y_UNIT_TEST

Function Y_UNIT_TEST

util/draft/datetime_ut.cpp:55–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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;

Callers

nothing calls this directly

Calls 14

LeapYearADFunction · 0.85
YDayToMonthAndDayFunction · 0.85
YDayFromMonthAndDayFunction · 0.85
ZeroFunction · 0.85
gmtime_rFunction · 0.85
AssertStructTmEqualFunction · 0.85
PrintMarkerFunction · 0.85
localtime_rFunction · 0.85
AssertSimpleTMFunction · 0.85
IsUTCMethod · 0.80
AsTimeTMethod · 0.80
NewFunction · 0.50

Tested by

no test coverage detected