mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-19 14:25:27 +00:00
TestParse: make sure we get one dive from SeabearHUDC
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
e6a50be127
commit
90af2f1f48
1 changed files with 2 additions and 1 deletions
|
@ -196,11 +196,12 @@ void TestParse::testParseHUDC()
|
||||||
QCOMPARE(parse_csv_file(SUBSURFACE_SOURCE "/dives/TestDiveSeabearHUDC.csv",
|
QCOMPARE(parse_csv_file(SUBSURFACE_SOURCE "/dives/TestDiveSeabearHUDC.csv",
|
||||||
params, pnr - 1, "csv"), 0);
|
params, pnr - 1, "csv"), 0);
|
||||||
|
|
||||||
|
QCOMPARE(dive_table.nr, 1);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* CSV import uses time and date stamps relative to current
|
* CSV import uses time and date stamps relative to current
|
||||||
* time, thus we need to use a static (random) timestamp
|
* time, thus we need to use a static (random) timestamp
|
||||||
*/
|
*/
|
||||||
|
|
||||||
struct dive *dive = dive_table.dives[dive_table.nr - 1];
|
struct dive *dive = dive_table.dives[dive_table.nr - 1];
|
||||||
dive->when = 1255152761;
|
dive->when = 1255152761;
|
||||||
dive->dc.when = 1255152761;
|
dive->dc.when = 1255152761;
|
||||||
|
|
Loading…
Add table
Reference in a new issue