| 1229 | } |
| 1230 | |
| 1231 | int testPathFunction2(const char* name, |
| 1232 | std::function<std::string(std::string, bool)> fun, |
| 1233 | std::string a, |
| 1234 | bool x, |
| 1235 | std::string b) { |
| 1236 | std::string o = fun(a, x); |
| 1237 | bool r = b == o; |
| 1238 | printf("%s: %s(%s, %d) => %s expected %s\n", r ? "PASS" : "FAIL", name, a.c_str(), x, o.c_str(), b.c_str()); |
| 1239 | return r ? 0 : 1; |
| 1240 | } |
| 1241 | |
| 1242 | void testPathOps() { |
| 1243 | int errors = 0; |
no test coverage detected