Fixed CSV parsing tests.

We now parse CSV and not TSV files.

Signed-off-by: Michael Keller <github@ike.ch>
This commit is contained in:
Michael Keller 2023-04-28 16:10:41 +12:00 committed by mturkia
parent 1bd7806dcf
commit 361baeda01

View file

@ -293,7 +293,7 @@ int TestParse::parseCSVmanual(int units, std::string file)
xml_params_add_int(&params, "weightField", 23); xml_params_add_int(&params, "weightField", 23);
xml_params_add_int(&params, "tagsField", 24); xml_params_add_int(&params, "tagsField", 24);
// Numbers are indices of possible options // Numbers are indices of possible options
xml_params_add_int(&params, "separatorIndex", 0); xml_params_add_int(&params, "separatorIndex", 1);
xml_params_add_int(&params, "datefmt", 2); xml_params_add_int(&params, "datefmt", 2);
xml_params_add_int(&params, "durationfmt", 2); xml_params_add_int(&params, "durationfmt", 2);
xml_params_add_int(&params, "units", units); xml_params_add_int(&params, "units", units);
@ -351,7 +351,7 @@ void TestParse::exportSubsurfaceCSV()
clear_dive_file_data(); clear_dive_file_data();
xml_params_add_int(&params, "separatorIndex", 0); xml_params_add_int(&params, "separatorIndex", 1);
xml_params_add_int(&params, "units", 1); xml_params_add_int(&params, "units", 1);
parse_csv_file("testcsvexportmanualimperial-cyl.csv", &params, "SubsurfaceCSV", &divelog); parse_csv_file("testcsvexportmanualimperial-cyl.csv", &params, "SubsurfaceCSV", &divelog);