MOS Source Code
Loading...
Searching...
No Matches
unittests.h File Reference
#include <stdio.h>
+ Include dependency graph for unittests.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define COMMENT(x)
 
#define TEST(x)
 

Macro Definition Documentation

◆ COMMENT

#define COMMENT ( x)
Value:
printf("\n----" x "----\n");

Definition at line 17 of file unittests.h.

Referenced by main(), and main().

◆ TEST

#define TEST ( x)
Value:
if (!(x)) { \
fprintf(stderr, "\033[31;1mFAILED:\033[22;39m %s:%d %s\n", __FILE__, __LINE__, #x); \
status = 1; \
} else { \
printf("\033[32;1mOK:\033[22;39m %s\n", #x); \
}
#define stderr
Definition mos_stdio.h:32

Definition at line 18 of file unittests.h.