From 90af2f1f48be6e77d980f75fcacae2dccf853153 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Sun, 5 Feb 2017 16:11:20 -0800 Subject: TestParse: make sure we get one dive from SeabearHUDC Signed-off-by: Dirk Hohndel --- tests/testparse.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tests/testparse.cpp') 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; -- cgit v1.2.3-70-g09d2