Reorganise easycsv_access_suite
This commit is contained in:
parent
449a1bb36c
commit
5f50b57b36
@ -82,23 +82,20 @@ START_TEST(test_easycsv_readcolumnvalue)
|
|||||||
}
|
}
|
||||||
|
|
||||||
Suite*
|
Suite*
|
||||||
easycsv_read_suite(void)
|
easycsv_access_suite(void)
|
||||||
{
|
{
|
||||||
Suite *s;
|
Suite *s;
|
||||||
TCase *tc_readcolumnvalue, *tc_col, *tc_row;
|
TCase *tc_find, *tc_read, *tc_print;
|
||||||
s = suite_create ("read");
|
s = suite_create ("access");
|
||||||
tc_readcolumnvalue = tcase_create ("readcolumnvalue");
|
tc_read = tcase_create ("read");
|
||||||
tcase_add_test(tc_readcolumnvalue, test_easycsv_readcolumnvalue);
|
tcase_add_test(tc_read, test_easycsv_readcolumnvalue);
|
||||||
|
|
||||||
tc_col = tcase_create ("columns");
|
tc_print = tcase_create ("print");
|
||||||
tcase_add_test(tc_col, test_easycsv_printcolumns);
|
tcase_add_test(tc_print, test_easycsv_printcolumns);
|
||||||
|
tcase_add_test(tc_print, test_easycsv_printrows);
|
||||||
|
|
||||||
tc_row = tcase_create ("rows");
|
suite_add_tcase(s, tc_read);
|
||||||
tcase_add_test(tc_row, test_easycsv_printrows);
|
suite_add_tcase(s, tc_print);
|
||||||
|
|
||||||
suite_add_tcase(s, tc_readcolumnvalue);
|
|
||||||
suite_add_tcase(s, tc_col);
|
|
||||||
suite_add_tcase(s, tc_row);
|
|
||||||
|
|
||||||
return s;
|
return s;
|
||||||
}
|
}
|
||||||
@ -110,7 +107,7 @@ main(void)
|
|||||||
SRunner *sr;
|
SRunner *sr;
|
||||||
|
|
||||||
sr = srunner_create(easycsv_constructor_suite());
|
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);
|
srunner_run_all(sr, CK_VERBOSE);
|
||||||
number_failed = srunner_ntests_failed(sr);
|
number_failed = srunner_ntests_failed(sr);
|
||||||
|
Loading…
Reference in New Issue
Block a user