Rename testing macros
This commit is contained in:
@@ -7,13 +7,14 @@
|
||||
extern "C" {
|
||||
#endif // __cplusplus
|
||||
|
||||
#define TEST_RESULT(BOOL) ((TestFuncResult){.name = __func__, .success = BOOL})
|
||||
#define RUN_TEST_FUNCS(...) run_tests(__VA_ARGS__, NULL)
|
||||
#define wapp_tester_result(test_passed) \
|
||||
((TestFuncResult){.name = __func__, .passed = test_passed})
|
||||
#define wapp_tester_run_tests(...) run_tests(__VA_ARGS__, NULL)
|
||||
|
||||
typedef struct test_func_result TestFuncResult;
|
||||
struct test_func_result {
|
||||
const char *name;
|
||||
bool success;
|
||||
bool passed;
|
||||
};
|
||||
|
||||
typedef TestFuncResult(TestFunc)(void);
|
||||
|
Reference in New Issue
Block a user