From 79bb61dba186f8439d30dcf98b7f9dc8e9c2b687 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Fri, 24 Apr 2015 07:07:31 -0700 Subject: Adapt CSV test to include suit Also fixed it to correctly parse the mean depth (duh, a test that had a bug) and added a buddy field for good measure. Signed-off-by: Dirk Hohndel --- tests/testparse.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/testparse.cpp') diff --git a/tests/testparse.cpp b/tests/testparse.cpp index 0257614cb..e5abbaa6a 100644 --- a/tests/testparse.cpp +++ b/tests/testparse.cpp @@ -14,8 +14,8 @@ void TestParse::testParseCSV() 0, // metric units 1, // mm/dd/yyyy 2, // min:sec - 0, 1, 2, 3, -1, -1, 4, -1, // Dive #, date, time, duration, maxdepth, avgdepth - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1), 0); + 0, 1, 2, 3, -1, -1, 4, 5, // Dive #, date, time, duration, maxdepth, avgdepth + -1, 6, 7, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1), 0); // buddy, suit fprintf(stderr, "number of dives %d \n", dive_table.nr); } -- cgit v1.2.3-70-g09d2