Browse Source

Corrected cell names

Signed-off-by: Pradana AUMARS <paumars@courrier.dev>
redesign
Pradana AUMARS 10 months ago
parent
commit
3178e0eccf
  1. 4
      tests/check_easycsv.c
  2. 8
      tests/samples/1.csv

4
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);

8
tests/samples/1.csv

@ -1,4 +1,4 @@
FILEPATHA1,FILEPATHA2,FILEPATHA3
FILEPATHB1,FILEPATHB2,FILEPATHB3
,FILEPATHC2,FILEPATHC3
,FILEPATHD2,
FILEPATHA1,FILEPATHB1,FILEPATHC1
FILEPATHA2,FILEPATHB2,FILEPATHC2
,FILEPATHB3,FILEPATHC3
,FILEPATHB4,
1 FILEPATHA1 FILEPATHA2 FILEPATHB1 FILEPATHA3 FILEPATHC1
2 FILEPATHB1 FILEPATHA2 FILEPATHB2 FILEPATHB2 FILEPATHB3 FILEPATHC2
3 FILEPATHC2 FILEPATHB3 FILEPATHC3 FILEPATHC3
4 FILEPATHD2 FILEPATHB4
Loading…
Cancel
Save