35 virtual void run (Arg)
37 CHECK (
sanitise (
"Word") ==
"Word"_expect);
38 CHECK (
sanitise (
"a Sentence") ==
"a_Sentence"_expect);
39 CHECK (
sanitise (
"trailing Withespace\n \t") ==
"trailing_Withespace"_expect);
40 CHECK (
sanitise (
"with a \t lot\n of Whitespace") ==
"with_a_lot_of_Whitespace"_expect);
41 CHECK (
sanitise (
"@with\".\'much ($punctuation)[]!") ==
"@with.much_($punctuation)"_expect);
42 CHECK (
sanitise (
"§&Ω%€ leading garbage") ==
"leading_garbage"_expect);
43 CHECK (
sanitise (
"mixed Ω garbage") ==
"mixed_garbage"_expect);
44 CHECK (
sanitise (
"Bääääh!!") ==
"Bh"_expect);
45 CHECK (
sanitise (
"§&Ω%€") ==
""_expect);
std::string sanitise(std::string const &)
produce an identifier based on the given string.
Simplistic test class runner.
Tiny helper functions and shortcuts to be used everywhere Consider this header to be effectively incl...
A collection of frequently used helper functions to support unit testing.