diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2019-04-05 21:56:20 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2019-04-12 18:19:07 +0300 |
commit | 858d3e2eed188b609090b20ecaba2f779aedb6eb (patch) | |
tree | 22f7f059c73cdd391e864adfa5ae123d7250175a /tests/testmerge.cpp | |
parent | b024ca101ec0c274595407158edad945bec7868d (diff) | |
download | subsurface-858d3e2eed188b609090b20ecaba2f779aedb6eb.tar.gz |
Dive site: fix merging tests
The handling of dive site merging changed and therefore the tests
have to be adapted.
1) Dive sites are recognized as identical based on their name.
Therefore, give the dive sites that should be merged the same name.
2) The dive site id of the first imported dive is kept. Thus,
merge and reverse merge produce two different output files.
Create a second file reflecting that fact.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'tests/testmerge.cpp')
-rw-r--r-- | tests/testmerge.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/testmerge.cpp b/tests/testmerge.cpp index 739e7014d..bef03cb14 100644 --- a/tests/testmerge.cpp +++ b/tests/testmerge.cpp @@ -55,7 +55,7 @@ void TestMerge::testMergeBackwards() QCOMPARE(parse_file(SUBSURFACE_TEST_DATA "/dives/test47.xml", &table, &trips, &sites), 0); add_imported_dives(&table, &trips, &sites, IMPORT_MERGE_ALL_TRIPS); QCOMPARE(save_dives("./testmerge47+48.ssrf"), 0); - QFile org(SUBSURFACE_TEST_DATA "/dives/test47+48.xml"); + QFile org(SUBSURFACE_TEST_DATA "/dives/test48+47.xml"); org.open(QFile::ReadOnly); QFile out("./testmerge47+48.ssrf"); out.open(QFile::ReadOnly); |