| 114 | } |
| 115 | |
| 116 | void verify(const TestData &td, int actual_x) { |
| 117 | if (td.expected_x == -1) { |
| 118 | assert(actual_x == -1); |
| 119 | } else { |
| 120 | assert(0 <= actual_x && actual_x < td.m); |
| 121 | assert(actual_x == td.expected_x); |
| 122 | } |
| 123 | } |
| 124 | |
| 125 | void test_discrete_log() { |
| 126 | for (const TestData &td : test_data) { |
no outgoing calls
no test coverage detected