diff --git a/tests/main_test.c b/tests/main_test.c index 9e1067a..9b82dbc 100644 --- a/tests/main_test.c +++ b/tests/main_test.c @@ -27,7 +27,7 @@ void test_memory_errors(void); #ifdef FORT_WB_TESTING_ENABLED -struct test_case wb_test_suit [] = { +struct test_case wb_test_suite [] = { {"test_vector_basic", test_vector_basic}, {"test_vector_stress", test_vector_stress}, {"test_string_buffer", test_string_buffer}, @@ -38,7 +38,7 @@ struct test_case wb_test_suit [] = { #endif -struct test_case bb_test_suit [] = { +struct test_case bb_test_suite [] = { #ifdef FT_HAVE_WCHAR {"test_bug_fixes", test_bug_fixes}, #endif @@ -57,19 +57,19 @@ struct test_case bb_test_suit [] = { }; #ifdef FORT_WB_TESTING_ENABLED -int run_wb_test_suit(void) +int run_wb_test_suite(void) { - int wb_n_tests = sizeof(wb_test_suit) / sizeof(wb_test_suit[0]); - run_test_suit("WHITE BOX TEST SUITE", wb_n_tests, wb_test_suit); + int wb_n_tests = sizeof(wb_test_suite) / sizeof(wb_test_suite[0]); + run_test_suite("WHITE BOX TEST SUITE", wb_n_tests, wb_test_suite); return 0; } #endif -int run_bb_test_suit(void) +int run_bb_test_suite(void) { - int bb_n_tests = sizeof(bb_test_suit) / sizeof(bb_test_suit[0]); - run_test_suit("BLACK BOX TEST SUITE", bb_n_tests, bb_test_suit); + 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); return 0; } @@ -86,10 +86,10 @@ int main(void) #endif #ifdef FORT_WB_TESTING_ENABLED - status |= run_wb_test_suit(); + status |= run_wb_test_suite(); fprintf(stderr, "\n"); #endif - status |= run_bb_test_suit(); + status |= run_bb_test_suite(); return status; diff --git a/tests/main_test_cpp.cpp b/tests/main_test_cpp.cpp index ecc7d60..b64f7a9 100644 --- a/tests/main_test_cpp.cpp +++ b/tests/main_test_cpp.cpp @@ -11,7 +11,7 @@ void test_cpp_table_text_styles(void); -struct test_case bb_test_suit [] = { +struct test_case bb_test_suite [] = { {"test_cpp_table_basic", test_cpp_table_basic}, {"test_cpp_table_write", test_cpp_table_write}, {"test_cpp_table_tbl_properties", test_cpp_table_tbl_properties}, @@ -20,10 +20,10 @@ struct test_case bb_test_suit [] = { }; -int run_bb_test_suit(void) +int run_bb_test_suite(void) { - int bb_n_tests = sizeof(bb_test_suit) / sizeof(bb_test_suit[0]); - run_test_suit("BLACK BOX TEST SUITE", bb_n_tests, bb_test_suit); + 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); return 0; } @@ -31,7 +31,7 @@ int main(void) { int status = 0; - status |= run_bb_test_suit(); + status |= run_bb_test_suite(); return status; } diff --git a/tests/tests.c b/tests/tests.c index 2582121..a21ba5a 100644 --- a/tests/tests.c +++ b/tests/tests.c @@ -1,15 +1,15 @@ #include "tests.h" -void run_test_suit(const char *test_suit_name, int n_tests, struct test_case test_suit[]) +void run_test_suite(const char *test_suite_name, int n_tests, struct test_case test_suite[]) { - fprintf(stderr, " == RUNNING %s ==\n", test_suit_name); + fprintf(stderr, " == RUNNING %s ==\n", test_suite_name); 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); - test_suit[i].test(); - fprintf(stderr, "[ OK ] %s\n", test_suit[i].name); + fprintf(stderr, "[ RUN ] %s\n", test_suite[i].name); + test_suite[i].test(); + fprintf(stderr, "[ OK ] %s\n", test_suite[i].name); } fprintf(stderr, "[==========] %d test(s) run.\n", n_tests); fprintf(stderr, "[ PASSED ] %d test(s).\n", n_tests); diff --git a/tests/tests.h b/tests/tests.h index 0ca1f47..19cf930 100644 --- a/tests/tests.h +++ b/tests/tests.h @@ -56,7 +56,7 @@ struct test_case { #ifdef __cplusplus extern "C" { #endif -void run_test_suit(const char *test_suit_name, int n_tests, struct test_case test_suit[]); +void run_test_suite(const char *test_suite_name, int n_tests, struct test_case test_suite[]); #ifdef __cplusplus } #endif