-
Notifications
You must be signed in to change notification settings - Fork 0
/
tests.cpp
28 lines (26 loc) · 1.05 KB
/
tests.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#include "cppure.h"
#include <cassert>
int main(int argc, char const* argv[])
{
assert(cppure::load_wordlist("wordlist.txt"));
assert(cppure::cleanse("ass") == "***");
assert(cppure::cleanse("ass¡") == "***¡");
assert(cppure::cleanse("¡ass¡") == "¡***¡");
assert(cppure::cleanse("a.s.s") == "a.s.s");
assert(cppure::cleanse("ASS") == "***");
assert(cppure::cleanse("Ass") == "***");
assert(cppure::cleanse("aSS") == "***");
assert(cppure::cleanse(" ass") == " ***");
assert(cppure::cleanse(" ass") == " ***");
assert(cppure::cleanse("ass.") == "***.");
assert(cppure::cleanse("ass. ") == "***. ");
assert(cppure::cleanse(" ass. ") == " ***. ");
assert(cppure::cleanse(".ass.") == ".***.");
assert(cppure::cleanse("ass!") == "***!");
assert(cppure::cleanse("you ass") == "you ***");
assert(cppure::cleanse("tit") == "***");
assert(cppure::cleanse("title") == "title");
assert(cppure::cleanse("ass tit") == "*** ***");
assert(cppure::cleanse("fuck you!") == "**** you!");
assert(cppure::cleanse("fuck you, cocksucker!") == "**** you, **********!");
}