| 9 | namespace { |
| 10 | |
| 11 | void require_close(float actual, float expected, float tolerance, const char * label) { |
| 12 | if (std::fabs(actual - expected) > tolerance) { |
| 13 | throw std::runtime_error( |
| 14 | std::string(label) + " mismatch: expected " + std::to_string(expected) + |
| 15 | ", got " + std::to_string(actual)); |
| 16 | } |
| 17 | } |
| 18 | |
| 19 | void require_vector_close( |
| 20 | const std::vector<float> & actual, |
no test coverage detected