[F] Fixed typos in variable names

This commit is contained in:
seleznevae 2018-12-29 18:32:40 +03:00
parent 1ba5d2ae02
commit f08035d19c
4 changed files with 21 additions and 21 deletions

View File

@ -27,7 +27,7 @@ void test_memory_errors(void);
#ifdef FORT_WB_TESTING_ENABLED #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_basic", test_vector_basic},
{"test_vector_stress", test_vector_stress}, {"test_vector_stress", test_vector_stress},
{"test_string_buffer", test_string_buffer}, {"test_string_buffer", test_string_buffer},
@ -38,7 +38,7 @@ struct test_case wb_test_suit [] = {
#endif #endif
struct test_case bb_test_suit [] = { struct test_case bb_test_suite [] = {
#ifdef FT_HAVE_WCHAR #ifdef FT_HAVE_WCHAR
{"test_bug_fixes", test_bug_fixes}, {"test_bug_fixes", test_bug_fixes},
#endif #endif
@ -57,19 +57,19 @@ struct test_case bb_test_suit [] = {
}; };
#ifdef FORT_WB_TESTING_ENABLED #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]); int wb_n_tests = sizeof(wb_test_suite) / sizeof(wb_test_suite[0]);
run_test_suit("WHITE BOX TEST SUITE", wb_n_tests, wb_test_suit); run_test_suite("WHITE BOX TEST SUITE", wb_n_tests, wb_test_suite);
return 0; return 0;
} }
#endif #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]); int bb_n_tests = sizeof(bb_test_suite) / sizeof(bb_test_suite[0]);
run_test_suit("BLACK BOX TEST SUITE", bb_n_tests, bb_test_suit); run_test_suite("BLACK BOX TEST SUITE", bb_n_tests, bb_test_suite);
return 0; return 0;
} }
@ -86,10 +86,10 @@ int main(void)
#endif #endif
#ifdef FORT_WB_TESTING_ENABLED #ifdef FORT_WB_TESTING_ENABLED
status |= run_wb_test_suit(); status |= run_wb_test_suite();
fprintf(stderr, "\n"); fprintf(stderr, "\n");
#endif #endif
status |= run_bb_test_suit(); status |= run_bb_test_suite();
return status; return status;

View File

@ -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_basic", test_cpp_table_basic},
{"test_cpp_table_write", test_cpp_table_write}, {"test_cpp_table_write", test_cpp_table_write},
{"test_cpp_table_tbl_properties", test_cpp_table_tbl_properties}, {"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]); int bb_n_tests = sizeof(bb_test_suite) / sizeof(bb_test_suite[0]);
run_test_suit("BLACK BOX TEST SUITE", bb_n_tests, bb_test_suit); run_test_suite("BLACK BOX TEST SUITE", bb_n_tests, bb_test_suite);
return 0; return 0;
} }
@ -31,7 +31,7 @@ int main(void)
{ {
int status = 0; int status = 0;
status |= run_bb_test_suit(); status |= run_bb_test_suite();
return status; return status;
} }

View File

@ -1,15 +1,15 @@
#include "tests.h" #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); fprintf(stderr, "[==========] Running %d test(s).\n", n_tests);
int i; int i;
for (i = 0; i < n_tests; ++i) { for (i = 0; i < n_tests; ++i) {
fprintf(stderr, "[ RUN ] %s\n", test_suit[i].name); fprintf(stderr, "[ RUN ] %s\n", test_suite[i].name);
test_suit[i].test(); test_suite[i].test();
fprintf(stderr, "[ OK ] %s\n", test_suit[i].name); fprintf(stderr, "[ OK ] %s\n", test_suite[i].name);
} }
fprintf(stderr, "[==========] %d test(s) run.\n", n_tests); fprintf(stderr, "[==========] %d test(s) run.\n", n_tests);
fprintf(stderr, "[ PASSED ] %d test(s).\n", n_tests); fprintf(stderr, "[ PASSED ] %d test(s).\n", n_tests);

View File

@ -56,7 +56,7 @@ struct test_case {
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
#endif #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 #ifdef __cplusplus
} }
#endif #endif