aboutsummaryrefslogtreecommitdiffstats
path: root/tests/testparse.cpp
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2017-02-05 16:11:20 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-02-05 16:11:20 -0800
commit90af2f1f48be6e77d980f75fcacae2dccf853153 (patch)
treef7eb15d4ada8f7fb591460231cf3e3efdea2418e /tests/testparse.cpp
parente6a50be127e3f3cc5b8217d0065402869fed48ef (diff)
downloadsubsurface-90af2f1f48be6e77d980f75fcacae2dccf853153.tar.gz
TestParse: make sure we get one dive from SeabearHUDC
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'tests/testparse.cpp')
-rw-r--r--tests/testparse.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/testparse.cpp b/tests/testparse.cpp
index be1d7c2c4..0fa4eb8a2 100644
--- a/tests/testparse.cpp
+++ b/tests/testparse.cpp
@@ -196,11 +196,12 @@ void TestParse::testParseHUDC()
QCOMPARE(parse_csv_file(SUBSURFACE_SOURCE "/dives/TestDiveSeabearHUDC.csv",
params, pnr - 1, "csv"), 0);
+ QCOMPARE(dive_table.nr, 1);
+
/*
* CSV import uses time and date stamps relative to current
* time, thus we need to use a static (random) timestamp
*/
-
struct dive *dive = dive_table.dives[dive_table.nr - 1];
dive->when = 1255152761;
dive->dc.when = 1255152761;