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