35 using lumiera::error::LUMIERA_ERROR_INVALID;
82 CHECK (
isYes (
"true"));
83 CHECK (
isYes (
"True"));
84 CHECK (
isYes (
"tRuE"));
85 CHECK (
isYes (
"TRUE"));
86 CHECK (
isYes (
"yes"));
87 CHECK (
isYes (
"Yes"));
91 CHECK (
isYes (
" True "));
92 CHECK (
isYes (
" \n\n 1 \t "));
94 CHECK (not
isYes (
" True and False"));
95 CHECK (not
isYes (
"+2"));
96 CHECK (not
isYes (
"no"));
97 CHECK (not
isYes (
"1010"));
98 CHECK (not
isYes (
"↯"));
99 CHECK (not
isYes (
" "));
100 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.
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.