Reorganise easycsv_access_suite

This commit is contained in:
Pradana AUMARS 2021-07-11 17:16:10 +02:00
parent 449a1bb36c
commit 5f50b57b36

View File

@ -82,23 +82,20 @@ START_TEST(test_easycsv_readcolumnvalue)
}
Suite*
easycsv_read_suite(void)
easycsv_access_suite(void)
{
Suite *s;
TCase *tc_readcolumnvalue, *tc_col, *tc_row;
s = suite_create ("read");
tc_readcolumnvalue = tcase_create ("readcolumnvalue");
tcase_add_test(tc_readcolumnvalue, test_easycsv_readcolumnvalue);
TCase *tc_find, *tc_read, *tc_print;
s = suite_create ("access");
tc_read = tcase_create ("read");
tcase_add_test(tc_read, test_easycsv_readcolumnvalue);
tc_col = tcase_create ("columns");
tcase_add_test(tc_col, test_easycsv_printcolumns);
tc_print = tcase_create ("print");
tcase_add_test(tc_print, test_easycsv_printcolumns);
tcase_add_test(tc_print, test_easycsv_printrows);
tc_row = tcase_create ("rows");
tcase_add_test(tc_row, test_easycsv_printrows);
suite_add_tcase(s, tc_readcolumnvalue);
suite_add_tcase(s, tc_col);
suite_add_tcase(s, tc_row);
suite_add_tcase(s, tc_read);
suite_add_tcase(s, tc_print);
return s;
}
@ -110,7 +107,7 @@ main(void)
SRunner *sr;
sr = srunner_create(easycsv_constructor_suite());
srunner_add_suite(sr, easycsv_read_suite());
srunner_add_suite(sr, easycsv_access_suite());
srunner_run_all(sr, CK_VERBOSE);
number_failed = srunner_ntests_failed(sr);