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

Function TestZigZagSigned

libs/routing/routing_tests/coding_test.cpp:46–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44
45template <typename T>
46void TestZigZagSigned()
47{
48 static_assert(std::is_signed<T>::value, "T should be a signed type");
49
50 constexpr auto min = std::numeric_limits<T>::min();
51 constexpr auto max = std::numeric_limits<T>::max();
52 constexpr T values[] = {min, min + 1, min / 2, -7, -1, 0, 1, 7, max / 2, max - 1, max};
53 for (T prev : values)
54 for (T current : values)
55 TestZigZag(prev, current);
56}
57} // namespace
58
59namespace routing_test

Callers

nothing calls this directly

Calls 1

TestZigZagFunction · 0.85

Tested by

no test coverage detected