libfort/tests/main_test_cpp.cpp

43 lines
1.2 KiB
C++
Raw Normal View History

2018-07-25 21:37:10 +02:00
#include "tests.h"
#include <stdio.h>
#include "fort.h"
2018-11-24 21:14:26 +01:00
/* Test cases */
2018-07-25 21:37:10 +02:00
void test_cpp_table_basic(void);
2018-08-12 11:00:07 +02:00
void test_cpp_table_write(void);
void test_cpp_table_insert(void);
void test_cpp_table_changing_cell(void);
2018-11-21 18:50:56 +01:00
void test_cpp_table_tbl_properties(void);
void test_cpp_table_cell_properties(void);
void test_cpp_table_text_styles(void);
2019-08-09 20:29:05 +02:00
void test_cpp_bug_fixes(void);
2018-07-25 21:37:10 +02:00
2018-12-29 16:32:40 +01:00
struct test_case bb_test_suite [] = {
2019-07-17 21:33:56 +02:00
{"test_cpp_table_basic", test_cpp_table_basic},
2018-08-12 11:00:07 +02:00
{"test_cpp_table_write", test_cpp_table_write},
{"test_cpp_table_insert", test_cpp_table_insert},
{"test_cpp_table_changing_cell", test_cpp_table_changing_cell},
2019-07-17 21:33:56 +02:00
{"test_cpp_table_tbl_properties", test_cpp_table_tbl_properties},
{"test_cpp_table_cell_properties", test_cpp_table_cell_properties},
{"test_cpp_table_text_styles", test_cpp_table_text_styles},
2019-08-09 20:29:05 +02:00
{"test_cpp_bug_fixes", test_cpp_bug_fixes},
2018-07-25 21:37:10 +02:00
};
2018-12-29 16:32:40 +01:00
int run_bb_test_suite(void)
2018-07-25 21:37:10 +02:00
{
2018-12-29 16:32:40 +01:00
int bb_n_tests = sizeof(bb_test_suite) / sizeof(bb_test_suite[0]);
run_test_suite("BLACK BOX TEST SUITE", bb_n_tests, bb_test_suite);
2018-07-25 21:37:10 +02:00
return 0;
}
int main(void)
{
int status = 0;
2018-12-29 16:32:40 +01:00
status |= run_bb_test_suite();
2018-07-25 21:37:10 +02:00
return status;
}