diff --git a/tests/check_easycsv.c b/tests/check_easycsv.c index 252ece1..6387051 100644 --- a/tests/check_easycsv.c +++ b/tests/check_easycsv.c @@ -80,11 +80,11 @@ START_TEST(test_easycsv_read_value) ck_assert_str_eq(str, "FILEPATHA1"); free(str); - str = easycsv_read_value(csv, 1, 2); + str = easycsv_read_value(csv, 2, 1); ck_assert_str_eq(str, "FILEPATHB1"); free(str); - str = easycsv_read_value(csv, 2, 1); + str = easycsv_read_value(csv, 1, 2); ck_assert_str_eq(str, "FILEPATHA2"); free(str); diff --git a/tests/samples/1.csv b/tests/samples/1.csv index 36a712d..932d868 100644 --- a/tests/samples/1.csv +++ b/tests/samples/1.csv @@ -1,4 +1,4 @@ -FILEPATHA1,FILEPATHA2,FILEPATHA3 -FILEPATHB1,FILEPATHB2,FILEPATHB3 -,FILEPATHC2,FILEPATHC3 -,FILEPATHD2, \ No newline at end of file +FILEPATHA1,FILEPATHB1,FILEPATHC1 +FILEPATHA2,FILEPATHB2,FILEPATHC2 +,FILEPATHB3,FILEPATHC3 +,FILEPATHB4, \ No newline at end of file