26 using lumiera::error::LUMIERA_ERROR_INVALID;
73 CHECK (
isYes (
"true"));
74 CHECK (
isYes (
"True"));
75 CHECK (
isYes (
"tRuE"));
76 CHECK (
isYes (
"TRUE"));
77 CHECK (
isYes (
"yes"));
78 CHECK (
isYes (
"Yes"));
82 CHECK (
isYes (
" True "));
83 CHECK (
isYes (
" \n\n 1 \t "));
85 CHECK (not
isYes (
" True and False"));
86 CHECK (not
isYes (
"+2"));
87 CHECK (not
isYes (
"no"));
88 CHECK (not
isYes (
"1010"));
89 CHECK (not
isYes (
"↯"));
90 CHECK (not
isYes (
" "));
91 CHECK (not
isYes (
""));
bool isYes(string const &textForm) noexcept
check the given text if it can be interpreted as affirmative answer (bool true).
#define VERIFY_ERROR(ERROR_ID, ERRONEOUS_STATEMENT)
Macro to verify that a statement indeed raises an exception.
bool boolVal(string const &textForm)
interpret text representation of a boolean value.
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.