Files
nntpchan/contrib/backends/nntpchan-daemon/test.cpp
T
Jeff Becker fde7ed3d3b more
2016-10-18 08:17:40 -04:00

14 lines
315 B
C++

#include "exec_frontend.hpp"
#include <cassert>
#include <iostream>
int main(int , char * [])
{
nntpchan::Frontend * f = new nntpchan::ExecFrontend("./contrib/nntpchan.sh");
assert(f->AcceptsMessage("<test@server>"));
assert(f->AcceptsNewsgroup("overchan.test"));
std::cout << "all good" << std::endl;
}