44 virtual void run (Arg)
46 CHECK (
sanitise (
"Word") ==
"Word"_expect);
47 CHECK (
sanitise (
"a Sentence") ==
"a_Sentence"_expect);
48 CHECK (
sanitise (
"trailing Withespace\n \t") ==
"trailing_Withespace"_expect);
49 CHECK (
sanitise (
"with a \t lot\n of Whitespace") ==
"with_a_lot_of_Whitespace"_expect);
50 CHECK (
sanitise (
"@with\".\'much ($punctuation)[]!") ==
"@with.much_($punctuation)"_expect);
51 CHECK (
sanitise (
"§&Ω%€ leading garbage") ==
"leading_garbage"_expect);
52 CHECK (
sanitise (
"mixed Ω garbage") ==
"mixed_garbage"_expect);
53 CHECK (
sanitise (
"Bääääh!!") ==
"Bh"_expect);
54 CHECK (
sanitise (
"§&Ω%€") ==
""_expect);
std::string sanitise(std::string const &)
produce an identifier based on the given string.
Simple 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.