63 void require(
bool expr,
const char *source);
88 Serial.printf(
"%s: %s\n",
_fail ?
"FAILED" :
"passed",
_name);
103 Serial.printf(
"%s: fail: %s\n",
_name, source);
126 #define TEST(name) Test _test(# name) 134 #define REQUIRE(expr) _test.require(expr, # expr) const char * _name
name of the current test
static int16_t _failed
global fail count
bool _fail
set if any ::require calls indicate the test failed
static int16_t _passed
global pass count
void require(bool expr, const char *source)