mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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:
parent
c80d1879b7
commit
79bb61dba1
3 changed files with 19 additions and 11 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue