2018-01-01 09:26:34 +01:00
|
|
|
#include "tests.h"
|
2018-03-17 19:53:38 +01:00
|
|
|
#include <stdio.h>
|
2018-01-01 09:26:34 +01:00
|
|
|
|
2018-03-17 19:53:38 +01:00
|
|
|
struct test_case test_suit [] = {
|
|
|
|
{"test_vector_basic", test_vector_basic},
|
2018-03-19 21:07:18 +01:00
|
|
|
{"test_string_buffer", test_string_buffer},
|
2018-03-17 19:53:38 +01:00
|
|
|
{"test_table_sizes", test_table_sizes},
|
|
|
|
{"test_table_geometry", test_table_geometry},
|
|
|
|
{"test_table_basic", test_table_basic},
|
2018-03-23 19:16:06 +01:00
|
|
|
{"test_wcs_table_boundaries", test_wcs_table_boundaries},
|
2018-03-20 18:57:50 +01:00
|
|
|
{"test_table_write", test_table_write},
|
2018-03-19 21:07:18 +01:00
|
|
|
{"test_table_border_style", test_table_border_style},
|
2018-03-25 10:11:08 +02:00
|
|
|
{"test_table_cell_options", test_table_cell_options},
|
|
|
|
{"test_table_tbl_options", test_table_tbl_options},
|
2018-03-17 19:53:38 +01:00
|
|
|
};
|
2018-01-01 09:26:34 +01:00
|
|
|
|
|
|
|
int main(void) {
|
2018-03-17 19:53:38 +01:00
|
|
|
int n_tests = sizeof(test_suit) / sizeof(test_suit[0]);
|
|
|
|
fprintf(stderr, "[==========] Running %d test(s).\n", n_tests);
|
|
|
|
int i;
|
|
|
|
for (i = 0; i < n_tests; ++i) {
|
|
|
|
fprintf(stderr, "[ RUN ] %s\n", test_suit[i].name);
|
2018-03-19 21:07:18 +01:00
|
|
|
test_suit[i].test();
|
2018-03-17 19:53:38 +01:00
|
|
|
fprintf(stderr, "[ OK ] %s\n", test_suit[i].name);
|
|
|
|
}
|
|
|
|
fprintf(stderr, "[==========] %d test(s) run.\n", n_tests);
|
|
|
|
fprintf(stderr, "[ PASSED ] %d test(s).\n", n_tests);
|
|
|
|
return 0;
|
2018-01-01 09:26:34 +01:00
|
|
|
}
|