summaryrefslogtreecommitdiffstats
path: root/tests/testqPrefDivePlanner.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/testqPrefDivePlanner.cpp')
-rw-r--r--tests/testqPrefDivePlanner.cpp11
1 files changed, 4 insertions, 7 deletions
diff --git a/tests/testqPrefDivePlanner.cpp b/tests/testqPrefDivePlanner.cpp
index 55cbb9348..48583cc26 100644
--- a/tests/testqPrefDivePlanner.cpp
+++ b/tests/testqPrefDivePlanner.cpp
@@ -312,17 +312,14 @@ void TestQPrefDivePlanner::test_multiple()
{
// test multiple instances have the same information
- prefs.sacfactor = 22;
prefs.safetystop = true;
- auto tst_direct = new qPrefDivePlanner;
-
prefs.sacfactor = 32;
auto tst = qPrefDivePlanner::instance();
- QCOMPARE(tst->sacfactor(), tst_direct->sacfactor());
- QCOMPARE(tst->safetystop(), tst_direct->safetystop());
- QCOMPARE(tst_direct->sacfactor(), 32);
- QCOMPARE(tst_direct->safetystop(), true);
+ QCOMPARE(tst->sacfactor(), qPrefDivePlanner::sacfactor());
+ QCOMPARE(tst->safetystop(), qPrefDivePlanner::safetystop());
+ QCOMPARE(qPrefDivePlanner::sacfactor(), 32);
+ QCOMPARE(qPrefDivePlanner::safetystop(), true);
}
#define TEST(METHOD, VALUE) \