MCPcopy Create free account
hub / github.com/comaps/comaps / UNIT_TEST

Function UNIT_TEST

libs/routing/routing_tests/coding_test.cpp:61–69  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

59namespace routing_test
60{
61UNIT_TEST(ModuleCastTest)
62{
63 ForEachNumber<uint8_t>([](uint8_t number)
64 {
65 auto signedNumber = ModularCast(number);
66 static_assert(std::is_same<decltype(signedNumber), int8_t>::value, "int8_t expected");
67 TEST_EQUAL(static_cast<uint8_t>(signedNumber), number, ("signedNumber:", signedNumber));
68 });
69}
70
71UNIT_TEST(ZigZagUint8)
72{

Callers

nothing calls this directly

Calls 2

ModularCastFunction · 0.85
TestZigZagFunction · 0.85

Tested by

no test coverage detected