blob: cdf72b4d16ac9e52334fc0c79903a58e7cae0de8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
#include <stdio.h>
#include "lily-test.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");
}
|