15 lines
370 B
C++
15 lines
370 B
C++
#include "exec_frontend.hpp"
|
|
#include "message.hpp"
|
|
#include <cassert>
|
|
#include <iostream>
|
|
|
|
|
|
|
|
int main(int , char * [])
|
|
{
|
|
nntpchan::Frontend * f = new nntpchan::ExecFrontend("./contrib/nntpchan.sh");
|
|
assert(nntpchan::IsValidMessageID("<a28a71493831188@web.oniichan.onion>"));
|
|
assert(f->AcceptsNewsgroup("overchan.test"));
|
|
std::cout << "all good" << std::endl;
|
|
}
|