summaryrefslogtreecommitdiffstats
path: root/tests/testrenumber.cpp
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2018-08-18 15:06:15 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2018-08-23 10:17:12 -0700
commitd815e0c9476ef62e6b84fb28ce48ab7cddefe77e (patch)
tree997b938f8080518d339797aae4630eb66b81e204 /tests/testrenumber.cpp
parentecb64d7e3e3c6c875defc9dc4aab01c65ccddf8a (diff)
downloadsubsurface-d815e0c9476ef62e6b84fb28ce48ab7cddefe77e.tar.gz
Parse: pass dive_table argument to parse_file()
To enable undo of divelog-importing it is crucial that parse_file() can parse into arbitrary dive tables. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'tests/testrenumber.cpp')
-rw-r--r--tests/testrenumber.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/testrenumber.cpp b/tests/testrenumber.cpp
index 9b5a7f4af..f6a628083 100644
--- a/tests/testrenumber.cpp
+++ b/tests/testrenumber.cpp
@@ -7,14 +7,14 @@
void TestRenumber::setup()
{
- QCOMPARE(parse_file(SUBSURFACE_TEST_DATA "/dives/test47.xml"), 0);
+ QCOMPARE(parse_file(SUBSURFACE_TEST_DATA "/dives/test47.xml", &dive_table), 0);
process_dives(false, false);
dive_table.preexisting = dive_table.nr;
}
void TestRenumber::testMerge()
{
- QCOMPARE(parse_file(SUBSURFACE_TEST_DATA "/dives/test47b.xml"), 0);
+ QCOMPARE(parse_file(SUBSURFACE_TEST_DATA "/dives/test47b.xml", &dive_table), 0);
process_dives(true, false);
QCOMPARE(dive_table.nr, 1);
QCOMPARE(unsaved_changes(), 1);
@@ -24,7 +24,7 @@ void TestRenumber::testMerge()
void TestRenumber::testMergeAndAppend()
{
- QCOMPARE(parse_file(SUBSURFACE_TEST_DATA "/dives/test47c.xml"), 0);
+ QCOMPARE(parse_file(SUBSURFACE_TEST_DATA "/dives/test47c.xml", &dive_table), 0);
process_dives(true, false);
QCOMPARE(dive_table.nr, 2);
QCOMPARE(unsaved_changes(), 1);