Shuffle tests suite func definitions
This commit is contained in:
parent
0354afb2b7
commit
9d1dcc5714
@ -71,16 +71,6 @@ START_TEST(test_easycsv_printrows)
|
|||||||
easycsv_free(csv);
|
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*
|
Suite*
|
||||||
easycsv_print_suite(void)
|
easycsv_print_suite(void)
|
||||||
{
|
{
|
||||||
@ -97,6 +87,16 @@ easycsv_print_suite(void)
|
|||||||
return s;
|
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*
|
Suite*
|
||||||
easycsv_read_suite(void)
|
easycsv_read_suite(void)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user