libfort/tests/main_test_cpp.cpp

45 lines
1.2 KiB
C++
Raw Normal View History

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);
void test_cpp_table_insert(void);
void test_cpp_table_erase(void);
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},
{"test_cpp_table_insert", test_cpp_table_insert},
{"test_cpp_table_erase", test_cpp_table_erase},
{"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;
}