From 361baeda019537db8959b945def173b28aadf4e9 Mon Sep 17 00:00:00 2001 From: Michael Keller Date: Fri, 28 Apr 2023 16:10:41 +1200 Subject: [PATCH] Fixed CSV parsing tests. We now parse CSV and not TSV files. Signed-off-by: Michael Keller --- tests/testparse.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/testparse.cpp b/tests/testparse.cpp index ab07c14b0..791c94984 100644 --- a/tests/testparse.cpp +++ b/tests/testparse.cpp @@ -293,7 +293,7 @@ int TestParse::parseCSVmanual(int units, std::string file) xml_params_add_int(¶ms, "weightField", 23); xml_params_add_int(¶ms, "tagsField", 24); // Numbers are indices of possible options - xml_params_add_int(¶ms, "separatorIndex", 0); + xml_params_add_int(¶ms, "separatorIndex", 1); xml_params_add_int(¶ms, "datefmt", 2); xml_params_add_int(¶ms, "durationfmt", 2); xml_params_add_int(¶ms, "units", units); @@ -351,7 +351,7 @@ void TestParse::exportSubsurfaceCSV() clear_dive_file_data(); - xml_params_add_int(¶ms, "separatorIndex", 0); + xml_params_add_int(¶ms, "separatorIndex", 1); xml_params_add_int(¶ms, "units", 1); parse_csv_file("testcsvexportmanualimperial-cyl.csv", ¶ms, "SubsurfaceCSV", &divelog);