Archived
1
0
This repository has been archived on 2023-08-12. You can view files and clone it, but cannot push or open issues or pull requests.

13 lines
386 B
C++
Raw Normal View History

2017-05-03 11:37:09 -04:00
#include <cassert>
#include <iostream>
2017-10-17 10:29:56 -04:00
#include <nntpchan/exec_frontend.hpp>
#include <nntpchan/sanitize.hpp>
2017-05-03 11:37:09 -04:00
2017-10-17 10:29:56 -04:00
int main(int, char *[])
2017-05-03 11:37:09 -04:00
{
nntpchan::Frontend_ptr f(new nntpchan::ExecFrontend("./contrib/nntpchan.sh"));
2017-05-03 13:33:04 -04:00
assert(nntpchan::IsValidMessageID("<a28a71493831188@web.oniichan.onion>"));
2017-05-03 11:37:09 -04:00
assert(f->AcceptsNewsgroup("overchan.test"));
std::cout << "all good" << std::endl;
}