Update DL7 tests to current import

As we now parse dives without profile, we get 2 more dives from the
sample log import (3 in total). And naturally also the resulting XML to
compare against needs to be updated.

Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
This commit is contained in:
Miika Turkia 2018-01-07 09:42:04 +02:00 committed by mturkia
parent f91f16a4b6
commit 4a5b40c144
2 changed files with 9 additions and 1 deletions

View file

@ -9,6 +9,10 @@
<divesites>
</divesites>
<dives>
<dive number='1' date='2018-01-01'>
<divecomputer model='csv' deviceid='ffffffff'>
</divecomputer>
</dive>
<dive number='2' date='2018-01-02' time='10:10:00' duration='60:00 min'>
<divecomputer model='Imported from CSV' deviceid='ffffffff'>
<depth max='10.0 m' mean='9.508 m' />
@ -18,5 +22,9 @@
<sample time='60:00 min' depth='0.0 m' />
</divecomputer>
</dive>
<dive date='2018-01-03'>
<divecomputer model='csv' deviceid='ffffffff'>
</divecomputer>
</dive>
</dives>
</divelog>

View file

@ -500,7 +500,7 @@ void TestParse::parseDL7()
clear_dive_file_data();
QCOMPARE(parse_csv_file(SUBSURFACE_TEST_DATA "/dives/DL7.zxu",
params, pnr - 1 , "DL7"), 0);
QCOMPARE(dive_table.nr, 1);
QCOMPARE(dive_table.nr, 3);
QCOMPARE(save_dives("./testdl7out.ssrf"), 0);
FILE_COMPARE("./testdl7out.ssrf",