mirror of
				https://github.com/subsurface/subsurface.git
				synced 2025-02-19 22:16:15 +00:00 
			
		
		
		
	Whitespace cleanup tests
Again, entirely script based. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
		
							parent
							
								
									128fc5f4b8
								
							
						
					
					
						commit
						afe7e847d6
					
				
					 27 changed files with 321 additions and 313 deletions
				
			
		| 
						 | 
				
			
			@ -4,8 +4,7 @@
 | 
			
		|||
 | 
			
		||||
#include <QTest>
 | 
			
		||||
 | 
			
		||||
class TestDiveSiteDuplication : public QObject
 | 
			
		||||
{
 | 
			
		||||
class TestDiveSiteDuplication : public QObject {
 | 
			
		||||
	Q_OBJECT
 | 
			
		||||
private slots:
 | 
			
		||||
	void testReadV2();
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -4,8 +4,7 @@
 | 
			
		|||
 | 
			
		||||
#include <QTest>
 | 
			
		||||
 | 
			
		||||
class TestGitStorage : public QObject
 | 
			
		||||
{
 | 
			
		||||
class TestGitStorage : public QObject {
 | 
			
		||||
	Q_OBJECT
 | 
			
		||||
private slots:
 | 
			
		||||
	void initTestCase();
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,8 +1,8 @@
 | 
			
		|||
// SPDX-License-Identifier: GPL-2.0
 | 
			
		||||
#include "testmerge.h"
 | 
			
		||||
#include "core/dive.h"
 | 
			
		||||
#include "core/file.h"
 | 
			
		||||
#include "core/divelist.h"
 | 
			
		||||
#include "core/file.h"
 | 
			
		||||
#include <QTextStream>
 | 
			
		||||
 | 
			
		||||
void TestMerge::initTestCase()
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,12 +1,12 @@
 | 
			
		|||
// SPDX-License-Identifier: GPL-2.0
 | 
			
		||||
#include "testparse.h"
 | 
			
		||||
#include "core/dive.h"
 | 
			
		||||
#include "core/subsurface-string.h"
 | 
			
		||||
#include "core/parse.h"
 | 
			
		||||
#include "core/file.h"
 | 
			
		||||
#include "core/divelist.h"
 | 
			
		||||
#include <QTextStream>
 | 
			
		||||
#include "core/file.h"
 | 
			
		||||
#include "core/parse.h"
 | 
			
		||||
#include "core/qthelper.h"
 | 
			
		||||
#include "core/subsurface-string.h"
 | 
			
		||||
#include <QTextStream>
 | 
			
		||||
 | 
			
		||||
/* We have to use a macro since QCOMPARE
 | 
			
		||||
 * can only be called from a test method
 | 
			
		||||
| 
						 | 
				
			
			@ -24,7 +24,7 @@
 | 
			
		|||
	while (readin.size() && written.size()) {         \
 | 
			
		||||
		QCOMPARE(written.takeFirst().trimmed(),   \
 | 
			
		||||
			 readin.takeFirst().trimmed());   \
 | 
			
		||||
	}							\
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
void TestParse::initTestCase()
 | 
			
		||||
{
 | 
			
		||||
| 
						 | 
				
			
			@ -215,7 +215,8 @@ void TestParse::testParseHUDC()
 | 
			
		|||
	params[pnr++] = NULL;
 | 
			
		||||
 | 
			
		||||
	QCOMPARE(parse_csv_file(SUBSURFACE_TEST_DATA "/dives/TestDiveSeabearHUDC.csv",
 | 
			
		||||
				params, pnr - 1, "csv"), 0);
 | 
			
		||||
				params, pnr - 1, "csv"),
 | 
			
		||||
		 0);
 | 
			
		||||
 | 
			
		||||
	QCOMPARE(dive_table.nr, 1);
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -256,7 +257,11 @@ void TestParse::testParseNewFormat()
 | 
			
		|||
	for (int i = 0; i < files.size(); ++i) {
 | 
			
		||||
 | 
			
		||||
		QCOMPARE(parse_seabear_log(QString::fromLatin1(SUBSURFACE_TEST_DATA
 | 
			
		||||
			"/dives/").append(files.at(i)).toLatin1().data()), 0);
 | 
			
		||||
							       "/dives/")
 | 
			
		||||
						   .append(files.at(i))
 | 
			
		||||
						   .toLatin1()
 | 
			
		||||
						   .data()),
 | 
			
		||||
			 0);
 | 
			
		||||
		QCOMPARE(dive_table.nr, i + 1);
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -504,7 +509,8 @@ void TestParse::parseDL7()
 | 
			
		|||
 | 
			
		||||
	clear_dive_file_data();
 | 
			
		||||
	QCOMPARE(parse_csv_file(SUBSURFACE_TEST_DATA "/dives/DL7.zxu",
 | 
			
		||||
				params, pnr - 1 , "DL7"), 0);
 | 
			
		||||
				params, pnr - 1, "DL7"),
 | 
			
		||||
		 0);
 | 
			
		||||
	QCOMPARE(dive_table.nr, 3);
 | 
			
		||||
 | 
			
		||||
	QCOMPARE(save_dives("./testdl7out.ssrf"), 0);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,8 +1,8 @@
 | 
			
		|||
// SPDX-License-Identifier: GPL-2.0
 | 
			
		||||
#include "testpicture.h"
 | 
			
		||||
#include "core/dive.h"
 | 
			
		||||
#include "core/file.h"
 | 
			
		||||
#include "core/divelist.h"
 | 
			
		||||
#include "core/file.h"
 | 
			
		||||
#include <QString>
 | 
			
		||||
#include <core/qthelper.h>
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,10 +1,10 @@
 | 
			
		|||
// SPDX-License-Identifier: GPL-2.0
 | 
			
		||||
#include "core/dive.h"
 | 
			
		||||
#include "testplan.h"
 | 
			
		||||
#include "core/dive.h"
 | 
			
		||||
#include "core/planner.h"
 | 
			
		||||
#include "core/units.h"
 | 
			
		||||
#include "core/subsurfacestartup.h"
 | 
			
		||||
#include "core/qthelper.h"
 | 
			
		||||
#include "core/subsurfacestartup.h"
 | 
			
		||||
#include "core/units.h"
 | 
			
		||||
#include <QDebug>
 | 
			
		||||
 | 
			
		||||
#define DEBUG 1
 | 
			
		||||
| 
						 | 
				
			
			@ -373,7 +373,8 @@ void TestPlan::testMetric()
 | 
			
		|||
 | 
			
		||||
	// check minimum gas result
 | 
			
		||||
	struct divedatapoint *dp = testPlan.dp;
 | 
			
		||||
	while(!dp->minimum_gas.mbar && dp->next) dp = dp->next;
 | 
			
		||||
	while (!dp->minimum_gas.mbar && dp->next)
 | 
			
		||||
		dp = dp->next;
 | 
			
		||||
	QCOMPARE(lrint(dp->minimum_gas.mbar / 1000.0), 148l);
 | 
			
		||||
	// check first gas change to EAN36 at 33m
 | 
			
		||||
	struct event *ev = displayed_dive.dc.events;
 | 
			
		||||
| 
						 | 
				
			
			@ -413,7 +414,8 @@ void TestPlan::testImperial()
 | 
			
		|||
 | 
			
		||||
	// check minimum gas result
 | 
			
		||||
	struct divedatapoint *dp = testPlan.dp;
 | 
			
		||||
	while(!dp->minimum_gas.mbar && dp->next) dp = dp->next;
 | 
			
		||||
	while (!dp->minimum_gas.mbar && dp->next)
 | 
			
		||||
		dp = dp->next;
 | 
			
		||||
	QCOMPARE(lrint(dp->minimum_gas.mbar / 1000.0), 154l);
 | 
			
		||||
	// check first gas change to EAN36 at 33m
 | 
			
		||||
	struct event *ev = displayed_dive.dc.events;
 | 
			
		||||
| 
						 | 
				
			
			@ -453,7 +455,8 @@ void TestPlan::testVpmbMetric45m30minTx()
 | 
			
		|||
 | 
			
		||||
	// check minimum gas result
 | 
			
		||||
	struct divedatapoint *dp = testPlan.dp;
 | 
			
		||||
	while(!dp->minimum_gas.mbar && dp->next) dp = dp->next;
 | 
			
		||||
	while (!dp->minimum_gas.mbar && dp->next)
 | 
			
		||||
		dp = dp->next;
 | 
			
		||||
	QCOMPARE(lrint(dp->minimum_gas.mbar / 1000.0), 108l);
 | 
			
		||||
	// print first ceiling
 | 
			
		||||
	printf("First ceiling %.1f m\n", (mbar_to_depth(test_deco_state.first_ceiling_pressure.mbar, &displayed_dive) * 0.001));
 | 
			
		||||
| 
						 | 
				
			
			@ -483,7 +486,8 @@ void TestPlan::testVpmbMetric60m10minTx()
 | 
			
		|||
 | 
			
		||||
	// check minimum gas result
 | 
			
		||||
	struct divedatapoint *dp = testPlan.dp;
 | 
			
		||||
	while(!dp->minimum_gas.mbar && dp->next) dp = dp->next;
 | 
			
		||||
	while (!dp->minimum_gas.mbar && dp->next)
 | 
			
		||||
		dp = dp->next;
 | 
			
		||||
	QCOMPARE(lrint(dp->minimum_gas.mbar / 1000.0), 162l);
 | 
			
		||||
	// print first ceiling
 | 
			
		||||
	printf("First ceiling %.1f m\n", (mbar_to_depth(test_deco_state.first_ceiling_pressure.mbar, &displayed_dive) * 0.001));
 | 
			
		||||
| 
						 | 
				
			
			@ -513,7 +517,8 @@ void TestPlan::testVpmbMetric60m30minAir()
 | 
			
		|||
 | 
			
		||||
	// check minimum gas result
 | 
			
		||||
	struct divedatapoint *dp = testPlan.dp;
 | 
			
		||||
	while(!dp->minimum_gas.mbar && dp->next) dp = dp->next;
 | 
			
		||||
	while (!dp->minimum_gas.mbar && dp->next)
 | 
			
		||||
		dp = dp->next;
 | 
			
		||||
	QCOMPARE(lrint(dp->minimum_gas.mbar / 1000.0), 180l);
 | 
			
		||||
	// print first ceiling
 | 
			
		||||
	printf("First ceiling %.1f m\n", (mbar_to_depth(test_deco_state.first_ceiling_pressure.mbar, &displayed_dive) * 0.001));
 | 
			
		||||
| 
						 | 
				
			
			@ -543,7 +548,8 @@ void TestPlan::testVpmbMetric60m30minEan50()
 | 
			
		|||
 | 
			
		||||
	// check minimum gas result
 | 
			
		||||
	struct divedatapoint *dp = testPlan.dp;
 | 
			
		||||
	while(!dp->minimum_gas.mbar && dp->next) dp = dp->next;
 | 
			
		||||
	while (!dp->minimum_gas.mbar && dp->next)
 | 
			
		||||
		dp = dp->next;
 | 
			
		||||
	QCOMPARE(lrint(dp->minimum_gas.mbar / 1000.0), 155l);
 | 
			
		||||
	// print first ceiling
 | 
			
		||||
	printf("First ceiling %.1f m\n", (mbar_to_depth(test_deco_state.first_ceiling_pressure.mbar, &displayed_dive) * 0.001));
 | 
			
		||||
| 
						 | 
				
			
			@ -579,7 +585,8 @@ void TestPlan::testVpmbMetric60m30minTx()
 | 
			
		|||
 | 
			
		||||
	// check minimum gas result
 | 
			
		||||
	struct divedatapoint *dp = testPlan.dp;
 | 
			
		||||
	while(!dp->minimum_gas.mbar && dp->next) dp = dp->next;
 | 
			
		||||
	while (!dp->minimum_gas.mbar && dp->next)
 | 
			
		||||
		dp = dp->next;
 | 
			
		||||
	QCOMPARE(lrint(dp->minimum_gas.mbar / 1000.0), 159l);
 | 
			
		||||
	// print first ceiling
 | 
			
		||||
	printf("First ceiling %.1f m\n", (mbar_to_depth(test_deco_state.first_ceiling_pressure.mbar, &displayed_dive) * 0.001));
 | 
			
		||||
| 
						 | 
				
			
			@ -615,7 +622,8 @@ void TestPlan::testVpmbMetric100m60min()
 | 
			
		|||
 | 
			
		||||
	// check minimum gas result
 | 
			
		||||
	struct divedatapoint *dp = testPlan.dp;
 | 
			
		||||
	while(!dp->minimum_gas.mbar && dp->next) dp = dp->next;
 | 
			
		||||
	while (!dp->minimum_gas.mbar && dp->next)
 | 
			
		||||
		dp = dp->next;
 | 
			
		||||
	QCOMPARE(lrint(dp->minimum_gas.mbar / 1000.0), 157l);
 | 
			
		||||
	// print first ceiling
 | 
			
		||||
	printf("First ceiling %.1f m\n", (mbar_to_depth(test_deco_state.first_ceiling_pressure.mbar, &displayed_dive) * 0.001));
 | 
			
		||||
| 
						 | 
				
			
			@ -657,7 +665,8 @@ void TestPlan::testVpmbMetricMultiLevelAir()
 | 
			
		|||
 | 
			
		||||
	// check minimum gas result
 | 
			
		||||
	struct divedatapoint *dp = testPlan.dp;
 | 
			
		||||
	while(!dp->minimum_gas.mbar && dp->next) dp = dp->next;
 | 
			
		||||
	while (!dp->minimum_gas.mbar && dp->next)
 | 
			
		||||
		dp = dp->next;
 | 
			
		||||
	QCOMPARE(lrint(dp->minimum_gas.mbar / 1000.0), 101l);
 | 
			
		||||
	// print first ceiling
 | 
			
		||||
	printf("First ceiling %.1f m\n", (mbar_to_depth(test_deco_state.first_ceiling_pressure.mbar, &displayed_dive) * 0.001));
 | 
			
		||||
| 
						 | 
				
			
			@ -687,7 +696,8 @@ void TestPlan::testVpmbMetric100m10min()
 | 
			
		|||
 | 
			
		||||
	// check minimum gas result
 | 
			
		||||
	struct divedatapoint *dp = testPlan.dp;
 | 
			
		||||
	while(!dp->minimum_gas.mbar && dp->next) dp = dp->next;
 | 
			
		||||
	while (!dp->minimum_gas.mbar && dp->next)
 | 
			
		||||
		dp = dp->next;
 | 
			
		||||
	QCOMPARE(lrint(dp->minimum_gas.mbar / 1000.0), 175l);
 | 
			
		||||
	// print first ceiling
 | 
			
		||||
	printf("First ceiling %.1f m\n", (mbar_to_depth(test_deco_state.first_ceiling_pressure.mbar, &displayed_dive) * 0.001));
 | 
			
		||||
| 
						 | 
				
			
			@ -733,7 +743,8 @@ void TestPlan::testVpmbMetricRepeat()
 | 
			
		|||
 | 
			
		||||
	// check minimum gas result
 | 
			
		||||
	struct divedatapoint *dp = testPlan.dp;
 | 
			
		||||
	while(!dp->minimum_gas.mbar && dp->next) dp = dp->next;
 | 
			
		||||
	while (!dp->minimum_gas.mbar && dp->next)
 | 
			
		||||
		dp = dp->next;
 | 
			
		||||
	QCOMPARE(lrint(dp->minimum_gas.mbar / 1000.0), 61l);
 | 
			
		||||
	// print first ceiling
 | 
			
		||||
	printf("First ceiling %.1f m\n", (mbar_to_depth(test_deco_state.first_ceiling_pressure.mbar, &displayed_dive) * 0.001));
 | 
			
		||||
| 
						 | 
				
			
			@ -753,7 +764,8 @@ void TestPlan::testVpmbMetricRepeat()
 | 
			
		|||
 | 
			
		||||
	// check minimum gas result
 | 
			
		||||
	dp = testPlan.dp;
 | 
			
		||||
	while(!dp->minimum_gas.mbar && dp->next) dp = dp->next;
 | 
			
		||||
	while (!dp->minimum_gas.mbar && dp->next)
 | 
			
		||||
		dp = dp->next;
 | 
			
		||||
	QCOMPARE(lrint(dp->minimum_gas.mbar / 1000.0), 80l);
 | 
			
		||||
	// print first ceiling
 | 
			
		||||
	printf("First ceiling %.1f m\n", (mbar_to_depth(test_deco_state.first_ceiling_pressure.mbar, &displayed_dive) * 0.001));
 | 
			
		||||
| 
						 | 
				
			
			@ -789,7 +801,8 @@ void TestPlan::testVpmbMetricRepeat()
 | 
			
		|||
 | 
			
		||||
	// check minimum gas result
 | 
			
		||||
	dp = testPlan.dp;
 | 
			
		||||
	while(!dp->minimum_gas.mbar && dp->next) dp = dp->next;
 | 
			
		||||
	while (!dp->minimum_gas.mbar && dp->next)
 | 
			
		||||
		dp = dp->next;
 | 
			
		||||
	QCOMPARE(lrint(dp->minimum_gas.mbar / 1000.0), 61l);
 | 
			
		||||
	// print first ceiling
 | 
			
		||||
	printf("First ceiling %.1f m\n", (mbar_to_depth(test_deco_state.first_ceiling_pressure.mbar, &displayed_dive) * 0.001));
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -3,8 +3,8 @@
 | 
			
		|||
 | 
			
		||||
#include "core/subsurface-qt/SettingsObjectWrapper.h"
 | 
			
		||||
 | 
			
		||||
#include <QtTest>
 | 
			
		||||
#include <QDate>
 | 
			
		||||
#include <QtTest>
 | 
			
		||||
 | 
			
		||||
#define TEST(METHOD, VALUE)      \
 | 
			
		||||
	QCOMPARE(METHOD, VALUE); \
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -5,8 +5,7 @@
 | 
			
		|||
#include <QTest>
 | 
			
		||||
#include <functional>
 | 
			
		||||
 | 
			
		||||
class TestPreferences : public QObject
 | 
			
		||||
{
 | 
			
		||||
class TestPreferences : public QObject {
 | 
			
		||||
	Q_OBJECT
 | 
			
		||||
private slots:
 | 
			
		||||
	void initTestCase();
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,9 +1,9 @@
 | 
			
		|||
// SPDX-License-Identifier: GPL-2.0
 | 
			
		||||
#include "testqPrefAnimations.h"
 | 
			
		||||
 | 
			
		||||
#include "core/settings/qPref.h"
 | 
			
		||||
#include "core/pref.h"
 | 
			
		||||
#include "core/qthelper.h"
 | 
			
		||||
#include "core/settings/qPref.h"
 | 
			
		||||
 | 
			
		||||
#include <QDate>
 | 
			
		||||
#include <QTest>
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -4,8 +4,7 @@
 | 
			
		|||
 | 
			
		||||
#include <QObject>
 | 
			
		||||
 | 
			
		||||
class TestQPrefAnimations : public QObject
 | 
			
		||||
{
 | 
			
		||||
class TestQPrefAnimations : public QObject {
 | 
			
		||||
	Q_OBJECT
 | 
			
		||||
private slots:
 | 
			
		||||
	void initTestCase();
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,9 +1,9 @@
 | 
			
		|||
// SPDX-License-Identifier: GPL-2.0
 | 
			
		||||
#include "testqPrefCloudStorage.h"
 | 
			
		||||
 | 
			
		||||
#include "core/settings/qPref.h"
 | 
			
		||||
#include "core/pref.h"
 | 
			
		||||
#include "core/qthelper.h"
 | 
			
		||||
#include "core/settings/qPref.h"
 | 
			
		||||
 | 
			
		||||
#include <QTest>
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -48,7 +48,6 @@ void TestQPrefCloudStorage::test_struct_get()
 | 
			
		|||
	QCOMPARE(tst->save_password_local(), prefs.save_password_local);
 | 
			
		||||
	QCOMPARE(tst->save_userid_local(), prefs.save_userid_local);
 | 
			
		||||
	QCOMPARE(tst->userid(), QString(prefs.userid));
 | 
			
		||||
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void TestQPrefCloudStorage::test_set_struct()
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -4,8 +4,7 @@
 | 
			
		|||
 | 
			
		||||
#include <QObject>
 | 
			
		||||
 | 
			
		||||
class TestQPrefCloudStorage : public QObject
 | 
			
		||||
{
 | 
			
		||||
class TestQPrefCloudStorage : public QObject {
 | 
			
		||||
	Q_OBJECT
 | 
			
		||||
 | 
			
		||||
private slots:
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,9 +1,9 @@
 | 
			
		|||
// SPDX-License-Identifier: GPL-2.0
 | 
			
		||||
#include "testqPrefDisplay.h"
 | 
			
		||||
 | 
			
		||||
#include "core/settings/qPref.h"
 | 
			
		||||
#include "core/pref.h"
 | 
			
		||||
#include "core/qthelper.h"
 | 
			
		||||
#include "core/settings/qPref.h"
 | 
			
		||||
 | 
			
		||||
#include <QDate>
 | 
			
		||||
#include <QTest>
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -4,8 +4,7 @@
 | 
			
		|||
 | 
			
		||||
#include <QObject>
 | 
			
		||||
 | 
			
		||||
class TestQPrefDisplay : public QObject
 | 
			
		||||
{
 | 
			
		||||
class TestQPrefDisplay : public QObject {
 | 
			
		||||
	Q_OBJECT
 | 
			
		||||
private slots:
 | 
			
		||||
	void initTestCase();
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,9 +1,9 @@
 | 
			
		|||
// SPDX-License-Identifier: GPL-2.0
 | 
			
		||||
#include "testqPrefDiveComputer.h"
 | 
			
		||||
 | 
			
		||||
#include "core/settings/qPref.h"
 | 
			
		||||
#include "core/pref.h"
 | 
			
		||||
#include "core/qthelper.h"
 | 
			
		||||
#include "core/settings/qPref.h"
 | 
			
		||||
 | 
			
		||||
#include <QTest>
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -152,4 +152,3 @@ void TestQPrefDiveComputer::test_oldPreferences()
 | 
			
		|||
}
 | 
			
		||||
 | 
			
		||||
QTEST_MAIN(TestQPrefDiveComputer)
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -4,8 +4,7 @@
 | 
			
		|||
 | 
			
		||||
#include <QObject>
 | 
			
		||||
 | 
			
		||||
class TestQPrefDiveComputer : public QObject
 | 
			
		||||
{
 | 
			
		||||
class TestQPrefDiveComputer : public QObject {
 | 
			
		||||
	Q_OBJECT
 | 
			
		||||
 | 
			
		||||
private slots:
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,13 +1,12 @@
 | 
			
		|||
// SPDX-License-Identifier: GPL-2.0
 | 
			
		||||
#include <QApplication>
 | 
			
		||||
#include <QQmlContext>
 | 
			
		||||
#include <QQmlEngine>
 | 
			
		||||
#include <QtQuickTest>
 | 
			
		||||
#include <QtTest>
 | 
			
		||||
#include <QQmlEngine>
 | 
			
		||||
#include <QQmlContext>
 | 
			
		||||
#include <QApplication>
 | 
			
		||||
 | 
			
		||||
#include "core/settings/qPref.h"
 | 
			
		||||
#include "core/qt-gui.h"
 | 
			
		||||
#include "core/settings/qPref.h"
 | 
			
		||||
 | 
			
		||||
// this is the content of QUICK_TEST_MAIN amended with
 | 
			
		||||
// registration of ssrf classes
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,8 +1,8 @@
 | 
			
		|||
// SPDX-License-Identifier: GPL-2.0
 | 
			
		||||
#include "testrenumber.h"
 | 
			
		||||
#include "core/dive.h"
 | 
			
		||||
#include "core/file.h"
 | 
			
		||||
#include "core/divelist.h"
 | 
			
		||||
#include "core/file.h"
 | 
			
		||||
#include <QTextStream>
 | 
			
		||||
 | 
			
		||||
void TestRenumber::setup()
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -4,8 +4,7 @@
 | 
			
		|||
 | 
			
		||||
#include <QtTest>
 | 
			
		||||
 | 
			
		||||
class TestRenumber : public QObject
 | 
			
		||||
{
 | 
			
		||||
class TestRenumber : public QObject {
 | 
			
		||||
	Q_OBJECT
 | 
			
		||||
private slots:
 | 
			
		||||
	void setup();
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue