summaryrefslogtreecommitdiffstats
path: root/tests/testqPrefDiveComputer.cpp
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2018-07-25 12:39:04 -0700
committerGravatar Lubomir I. Ivanov <neolit123@gmail.com>2018-07-26 16:32:51 +0300
commitafe7e847d6ab550237c066a1570a7c3160b5b008 (patch)
tree04344853d787864ef726b9ae94f2e15d07c0d76e /tests/testqPrefDiveComputer.cpp
parent128fc5f4b81f036eeb76cda99704095673efbe8e (diff)
downloadsubsurface-afe7e847d6ab550237c066a1570a7c3160b5b008.tar.gz
Whitespace cleanup tests
Again, entirely script based. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'tests/testqPrefDiveComputer.cpp')
-rw-r--r--tests/testqPrefDiveComputer.cpp15
1 files changed, 7 insertions, 8 deletions
diff --git a/tests/testqPrefDiveComputer.cpp b/tests/testqPrefDiveComputer.cpp
index b16170488..915baecb8 100644
--- a/tests/testqPrefDiveComputer.cpp
+++ b/tests/testqPrefDiveComputer.cpp
@@ -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>
@@ -54,7 +54,7 @@ void TestQPrefDiveComputer::test_set_struct()
void TestQPrefDiveComputer::test_set_load_struct()
{
- // test set func -> load -> struct pref
+ // test set func -> load -> struct pref
auto tst = qPrefDiveComputer::instance();
@@ -120,11 +120,11 @@ void TestQPrefDiveComputer::test_multiple()
QCOMPARE(tst->download_mode(), tst_direct->download_mode());
}
-#define TEST(METHOD, VALUE) \
-QCOMPARE(METHOD, VALUE); \
-dc->sync(); \
-dc->load(); \
-QCOMPARE(METHOD, VALUE);
+#define TEST(METHOD, VALUE) \
+ QCOMPARE(METHOD, VALUE); \
+ dc->sync(); \
+ dc->load(); \
+ QCOMPARE(METHOD, VALUE);
void TestQPrefDiveComputer::test_oldPreferences()
{
@@ -152,4 +152,3 @@ void TestQPrefDiveComputer::test_oldPreferences()
}
QTEST_MAIN(TestQPrefDiveComputer)
-