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>
This commit is contained in:
Dirk Hohndel 2015-04-24 07:07:31 -07:00
parent c80d1879b7
commit 79bb61dba1
3 changed files with 19 additions and 11 deletions

View file

@ -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);
}