uLib-0.2
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
testing-prototype.h File Reference
#include <stdio.h>

Go to the source code of this file.

Macros

#define BEGIN_TESTING(name)
 
#define TEST1(val)   _fail += (val)==0
 
#define TEST0(val)   _fail += (val)!=0
 
#define END_TESTING   return _fail;
 

Macro Definition Documentation

#define BEGIN_TESTING (   name)
Value:
static int _fail = 0; \
printf("..:: Testing " #name " ::..\n");
#define END_TESTING   return _fail;
#define TEST0 (   val)    _fail += (val)!=0
#define TEST1 (   val)    _fail += (val)==0