blob: b20483a83f93505529ab40ced2db8517518c1931 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#include <stdio.h>
#include "tests.h"
void _run_test(const char *name, const char* (*test)())
{
printf("%s... ", name);
const char *result = test();
if (result != 0) {
printf("FAILED: %s\n", result);
}
else
printf("OK\n");
}
|