mirror of
https://github.com/subsurface/subsurface.git
synced 2024-12-01 06:30:26 +00:00
5caa9b23fe
In case of QCOMPARE failure, code following the comparison is not executed, this results in application state not being properly resorted and often gives several test failures, when only one test really fails. Using QTest cleanup method allows restoring proper state, before next test is executed. Signed-off-by: Jeremie Guichard <djebrest@gmail.com>
16 lines
222 B
C++
16 lines
222 B
C++
#ifndef TESTMERGE_H
|
|
#define TESTMERGE_H
|
|
|
|
#include <QtTest>
|
|
|
|
class TestMerge : public QObject{
|
|
Q_OBJECT
|
|
private slots:
|
|
void initTestCase();
|
|
void cleanup();
|
|
|
|
void testMergeEmpty();
|
|
void testMergeBackwards();
|
|
};
|
|
|
|
#endif
|