| 44 | |
| 45 | template <typename T> |
| 46 | void 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 | |
| 59 | namespace routing_test |
nothing calls this directly
no test coverage detected