#include "exec_frontend.hpp" #include "sanitize.hpp" #include #include int main(int , char * []) { nntpchan::Frontend_ptr f (new nntpchan::ExecFrontend("./contrib/nntpchan.sh")); assert(f->AcceptsMessage("")); assert(f->AcceptsNewsgroup("overchan.test")); assert(nntpchan::IsValidMessageID("")); assert(!nntpchan::IsValidMessageID("asd")); std::cout << "all good" << std::endl; }