mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
c4976b505a
commit
3fef6ec31d
5 changed files with 112 additions and 0 deletions
14
tests/testmerge.h
Normal file
14
tests/testmerge.h
Normal file
|
@ -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
|
Loading…
Add table
Add a link
Reference in a new issue