Skip to content

Commit

Permalink
[F] Fixed typos in variable names
Browse files Browse the repository at this point in the history
  • Loading branch information
seleznevae committed Dec 29, 2018
1 parent 1ba5d2a commit f08035d
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 21 deletions.
20 changes: 10 additions & 10 deletions tests/main_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -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},
Expand All @@ -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
Expand All @@ -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;
}

Expand All @@ -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;
Expand Down
10 changes: 5 additions & 5 deletions tests/main_test_cpp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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},
Expand All @@ -20,18 +20,18 @@ 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;
}

int main(void)
{
int status = 0;

status |= run_bb_test_suit();
status |= run_bb_test_suite();

return status;
}
10 changes: 5 additions & 5 deletions tests/tests.c
Original file line number Diff line number Diff line change
@@ -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);
Expand Down
2 changes: 1 addition & 1 deletion tests/tests.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f08035d

Please sign in to comment.