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.
nntpchan/contrib/backends/nntpchan-daemon/tools/testtool.cpp

15 lines
370 B
C++
Raw Normal View History

2017-05-03 20:37:09 +05:00
#include "exec_frontend.hpp"
2017-05-03 22:33:04 +05:00
#include "message.hpp"
2017-05-03 20:37:09 +05:00
#include <cassert>
#include <iostream>
int main(int , char * [])
{
nntpchan::Frontend * f = new nntpchan::ExecFrontend("./contrib/nntpchan.sh");
2017-05-03 22:33:04 +05:00
assert(nntpchan::IsValidMessageID("<a28a71493831188@web.oniichan.onion>"));
2017-05-03 20:37:09 +05:00
assert(f->AcceptsNewsgroup("overchan.test"));
std::cout << "all good" << std::endl;
}