Browse Source

Shuffle tests suite func definitions

redesign
Pradana AUMARS 11 months ago
parent
commit
9d1dcc5714
  1. 20
      tests/check_easycsv.c

20
tests/check_easycsv.c

@ -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)
{

Loading…
Cancel
Save