MCPcopy Create free account
hub / github.com/cp-algorithms/cp-algorithms / verify

Function verify

test/test_discrete_log.cpp:116–123  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

114}
115
116void 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
125void test_discrete_log() {
126 for (const TestData &td : test_data) {

Callers 2

test_discrete_logFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected