| 1222 | #endif |
| 1223 | |
| 1224 | int testPathFunction(const char* name, std::function<std::string(std::string)> fun, std::string a, std::string b) { |
| 1225 | std::string o = fun(a); |
| 1226 | bool r = b == o; |
| 1227 | printf("%s: %s(%s) = %s expected %s\n", r ? "PASS" : "FAIL", name, a.c_str(), o.c_str(), b.c_str()); |
| 1228 | return r ? 0 : 1; |
| 1229 | } |
| 1230 | |
| 1231 | int testPathFunction2(const char* name, |
| 1232 | std::function<std::string(std::string, bool)> fun, |
no test coverage detected