| 32 | |
| 33 | template <typename T> |
| 34 | void 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 | |
| 45 | template <typename T> |
| 46 | void TestZigZagSigned() |
nothing calls this directly
no test coverage detected