Shuffle tests suite func definitions

This commit is contained in:
Pradana AUMARS 2021-06-29 23:39:38 +02:00
parent 0354afb2b7
commit 9d1dcc5714

View File

@ -71,16 +71,6 @@ START_TEST(test_easycsv_printrows)
easycsv_free(csv);
}
START_TEST(test_easycsv_readcolumnvalue)
{
easycsv *csv = easycsv_init(SAMPLE1_PATH, EASYCSV_R);
ck_assert_str_eq(easycsv_readcolumnvalue(csv, "TEST1", 1), "FILEPATHA1");
ck_assert_str_eq(easycsv_readcolumnvalue(csv, "TEST1", 2), "FILEPATHB1");
ck_assert_str_eq(easycsv_readcolumnvalue(csv, "TEST1", 3), NULL);
ck_assert_str_eq(easycsv_readcolumnvalue(csv, "TEST2", 1), "FILEPATHA2");
easycsv_free(csv);
}
Suite*
easycsv_print_suite(void)
{
@ -97,6 +87,16 @@ easycsv_print_suite(void)
return s;
}
START_TEST(test_easycsv_readcolumnvalue)
{
easycsv *csv = easycsv_init(SAMPLE1_PATH, EASYCSV_R);
ck_assert_str_eq(easycsv_readcolumnvalue(csv, "TEST1", 1), "FILEPATHA1");
ck_assert_str_eq(easycsv_readcolumnvalue(csv, "TEST1", 2), "FILEPATHB1");
ck_assert_str_eq(easycsv_readcolumnvalue(csv, "TEST1", 3), NULL);
ck_assert_str_eq(easycsv_readcolumnvalue(csv, "TEST2", 1), "FILEPATHA2");
easycsv_free(csv);
}
Suite*
easycsv_read_suite(void)
{