aboutsummaryrefslogtreecommitdiffstats
path: root/tests/testparse.cpp
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2015-04-24 07:07:31 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-04-24 07:07:31 -0700
commit79bb61dba186f8439d30dcf98b7f9dc8e9c2b687 (patch)
treef0bfa68a30f16880b6bbadafbddf3b9bda7ee713 /tests/testparse.cpp
parentc80d1879b75716b47b1d6fb34fc385a08a43e420 (diff)
downloadsubsurface-79bb61dba186f8439d30dcf98b7f9dc8e9c2b687.tar.gz
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 <dirk@hohndel.org>
Diffstat (limited to 'tests/testparse.cpp')
-rw-r--r--tests/testparse.cpp4
1 files changed, 2 insertions, 2 deletions
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);
}