2018-07-25 22:37:10 +03:00
|
|
|
#include "tests.h"
|
|
|
|
#include <stdio.h>
|
|
|
|
#include "fort.h"
|
|
|
|
|
2018-11-24 23:14:26 +03:00
|
|
|
/* Test cases */
|
2018-07-25 22:37:10 +03:00
|
|
|
void test_cpp_table_basic(void);
|
2018-08-12 12:00:07 +03:00
|
|
|
void test_cpp_table_write(void);
|
2020-01-08 15:32:06 +03:00
|
|
|
void test_cpp_table_insert(void);
|
2020-01-19 22:06:25 +03:00
|
|
|
void test_cpp_table_erase(void);
|
2019-08-27 13:48:36 +03:00
|
|
|
void test_cpp_table_changing_cell(void);
|
2018-11-21 20:50:56 +03: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 21:29:05 +03:00
|
|
|
void test_cpp_bug_fixes(void);
|
2018-07-25 22:37:10 +03:00
|
|
|
|
|
|
|
|
2018-12-29 18:32:40 +03:00
|
|
|
struct test_case bb_test_suite [] = {
|
2019-07-17 22:33:56 +03:00
|
|
|
{"test_cpp_table_basic", test_cpp_table_basic},
|
2018-08-12 12:00:07 +03:00
|
|
|
{"test_cpp_table_write", test_cpp_table_write},
|
2020-01-08 15:32:06 +03:00
|
|
|
{"test_cpp_table_insert", test_cpp_table_insert},
|
2020-01-19 22:06:25 +03:00
|
|
|
{"test_cpp_table_erase", test_cpp_table_erase},
|
2019-08-27 13:48:36 +03:00
|
|
|
{"test_cpp_table_changing_cell", test_cpp_table_changing_cell},
|
2019-07-17 22:33:56 +03: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 21:29:05 +03:00
|
|
|
{"test_cpp_bug_fixes", test_cpp_bug_fixes},
|
2018-07-25 22:37:10 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
|
2018-12-29 18:32:40 +03:00
|
|
|
int run_bb_test_suite(void)
|
2018-07-25 22:37:10 +03:00
|
|
|
{
|
2018-12-29 18:32:40 +03: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 22:37:10 +03:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
int main(void)
|
|
|
|
{
|
|
|
|
int status = 0;
|
|
|
|
|
2018-12-29 18:32:40 +03:00
|
|
|
status |= run_bb_test_suite();
|
2018-07-25 22:37:10 +03:00
|
|
|
|
|
|
|
return status;
|
|
|
|
}
|