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

Function TestZigZagUnsigned

libs/routing/routing_tests/coding_test.cpp:34–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32
33template <typename T>
34void TestZigZagUnsigned()
35{
36 static_assert(std::is_unsigned<T>::value, "T should be an unsigned type");
37
38 constexpr auto max = std::numeric_limits<T>::max();
39 constexpr T values[] = {0, 1, 7, max / 2, max - 1, max};
40 for (T prev : values)
41 for (T current : values)
42 TestZigZag(prev, current);
43}
44
45template <typename T>
46void TestZigZagSigned()

Callers

nothing calls this directly

Calls 1

TestZigZagFunction · 0.85

Tested by

no test coverage detected