2018-01-01 09:26:34 +01:00
|
|
|
#ifndef TESTS_H
|
|
|
|
#define TESTS_H
|
|
|
|
|
|
|
|
#include <stdarg.h>
|
|
|
|
#include <stddef.h>
|
|
|
|
#include <setjmp.h>
|
|
|
|
|
|
|
|
#define WHEN(...)
|
|
|
|
#define THEN(...)
|
|
|
|
|
|
|
|
|
|
|
|
void test_vector_basic(void **state);
|
2018-01-02 10:03:58 +01:00
|
|
|
|
2018-01-02 20:48:38 +01:00
|
|
|
void test_table_sizes(void **state);
|
2018-01-02 10:03:58 +01:00
|
|
|
void test_table_geometry(void **state);
|
2018-01-01 09:26:34 +01:00
|
|
|
void test_table_basic(void **state);
|
2018-01-03 08:40:54 +01:00
|
|
|
void test_table_options(void **state);
|
2018-01-21 09:19:18 +01:00
|
|
|
void test_string_buffer(void **state);
|
2018-01-01 09:26:34 +01:00
|
|
|
|
2018-03-17 19:53:38 +01:00
|
|
|
struct test_case
|
|
|
|
{
|
|
|
|
char name [128];
|
|
|
|
void (*test)(void **);
|
|
|
|
};
|
|
|
|
|
|
|
|
#define assert_true(args) assert(args)
|
2018-01-01 09:26:34 +01:00
|
|
|
|
|
|
|
#endif // TESTS_H
|