| 24 | #define f_assert(expr) { if (!(expr)) { test_failed = true; fprintf(stderr, "%s failed\n", __func__); } } |
| 25 | |
| 26 | static std::string rtrim(std::string s) |
| 27 | { |
| 28 | s.erase(s.find_last_not_of(" \n\r\t")+1); |
| 29 | return s; |
| 30 | } |
| 31 | |
| 32 | static void runtest(std::string filename, const std::string& jdata) |
| 33 | { |