aboutsummaryrefslogtreecommitdiff
path: root/mons_math/tests/test.h
blob: ce94b2e0984a9324ebea7906197a17a442b85d4c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#ifndef TEST_H
#define TEST_H

#include <stdio.h>
#include <stdlib.h>

#define ASSERT(cond) {\
    if (!(cond)) {\
        fprintf(stderr, "Assertion Failed @ %s:%d (%s): %s", __func__, __LINE__, __FILE__, #cond);\
        exit(EXIT_FAILURE);\
    }\
}

#endif