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

Method TestDown

util/system/align_ut.cpp:12–21  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10
11private:
12 inline void TestDown() {
13 UNIT_ASSERT(AlignDown(0, 4) == 0);
14 UNIT_ASSERT(AlignDown(1, 4) == 0);
15 UNIT_ASSERT(AlignDown(2, 4) == 0);
16 UNIT_ASSERT(AlignDown(3, 4) == 0);
17 UNIT_ASSERT(AlignDown(4, 4) == 4);
18 UNIT_ASSERT(AlignDown(5, 4) == 4);
19 UNIT_ASSERT(AlignDown(0, 8) == 0);
20 UNIT_ASSERT(AlignDown(1, 8) == 0);
21 }
22
23 inline void TestUp() {
24 UNIT_ASSERT(AlignUp(0, 4) == 0);

Callers

nothing calls this directly

Calls 1

AlignDownFunction · 0.70

Tested by

no test coverage detected