subsurface/tests/testmerge.h
Jeremie Guichard 5caa9b23fe Use QTest cleanup method for proper test shutdown
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>
2017-03-04 12:03:33 -08:00

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