summaryrefslogtreecommitdiffstats
path: root/tests/testmerge.h
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2017-02-21 17:23:19 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-02-21 18:22:56 -0800
commit3fef6ec31da786bde7f249dd9c07121944ddd9ee (patch)
treedc1d579f1072a6bf351935165cbafae20099ab7c /tests/testmerge.h
parentc4976b505a2c4a1fe62610b3c875eac56957c924 (diff)
downloadsubsurface-3fef6ec31da786bde7f249dd9c07121944ddd9ee.tar.gz
Simple test case for merging dives
We do some merging in a couple of the other tests as well, but the idea is to have specific test cases that exercise our merge logic. This one starts simple. Merge a dive with some valid info with a second one that has less data filled. And then try it in both possible orders. It shows a few potential problems. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'tests/testmerge.h')
-rw-r--r--tests/testmerge.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/testmerge.h b/tests/testmerge.h
new file mode 100644
index 000000000..771afc4db
--- /dev/null
+++ b/tests/testmerge.h
@@ -0,0 +1,14 @@
+#ifndef TESTMERGE_H
+#define TESTMERGE_H
+
+#include <QtTest>
+
+class TestMerge : public QObject{
+ Q_OBJECT
+private slots:
+ void initTestCase();
+ void testMergeEmpty();
+ void testMergeBackwards();
+};
+
+#endif