| 59 | namespace routing_test |
| 60 | { |
| 61 | UNIT_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 | |
| 71 | UNIT_TEST(ZigZagUint8) |
| 72 | { |
nothing calls this directly
no test coverage detected