added macro to test and report
This commit was SVN r1909.
Этот коммит содержится в:
родитель
097ad1a1bc
Коммит
06686b08d4
@ -8,6 +8,10 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#define TEST_AND_REPORT(res, exp_res, str) \
|
||||
if( res == exp_res ) test_success(); \
|
||||
else test_failure(str);
|
||||
|
||||
void test_init(char *a);
|
||||
void test_success(void);
|
||||
void test_failure(char *a);
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user