#ifdef HAVE_CONFIG_H # include "config.h" #endif #include #include #include #include #include "lib.h" static inline bool test_analyse_query(const char *s, const std::pair& res) { std::string resstr; query_t qt=analyse_query(s, resstr); if (qt!=res.first || resstr!=res.second) { std::cerr<<"query: "< > >::const_iterator p=aq_tests.begin(); p!=aq_tests.end(); ++p) if (!test_analyse_query(p->first.c_str(), p->second)) return EXIT_FAILURE; return EXIT_SUCCESS; }