From 24c42b9b5592046fcc5f52ced34da0de1e4624ad Mon Sep 17 00:00:00 2001 From: jan Iversen Date: Mon, 30 Dec 2019 17:12:57 +0100 Subject: tests: reactivate test case in testplannershared reactivate deco2 test case, after problem is solved in plannerShared. Also add a commit on bottompo2/decopo2 in imperial mode, that do not use PSI as expected. Signed-off-by: Jan Iversen --- tests/testplannershared.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/testplannershared.cpp b/tests/testplannershared.cpp index 0d66bce8d..0c4c2b916 100644 --- a/tests/testplannershared.cpp +++ b/tests/testplannershared.cpp @@ -231,7 +231,7 @@ void TestPlannerShared::test_gas() plannerShared::set_decopo2(1.6); QCOMPARE(qPrefDivePlanner::decopo2(), 1600); qPrefDivePlanner::set_decopo2(1100); -//TEMP QCOMPARE(plannerShared::decopo2(), 1.1); + QCOMPARE(plannerShared::decopo2(), 1.1); qPrefDivePlanner::set_decopo2(1000); QCOMPARE(plannerShared::decopo2(), 1.0); @@ -265,6 +265,8 @@ void TestPlannerShared::test_gas() qPrefDivePlanner::set_decosac(19822); //Not implemented QCOMPARE(plannerShared::decosac(), 0.7); + // Remark bottompo2 is in BAR, even though unit system is + // Imperial, the desktop version is like that. plannerShared::set_bottompo2(1.5); QCOMPARE(qPrefDivePlanner::bottompo2(), 1500); plannerShared::set_bottompo2(1.6); @@ -274,6 +276,8 @@ void TestPlannerShared::test_gas() qPrefDivePlanner::set_bottompo2(1000); QCOMPARE(plannerShared::bottompo2(), 1.0); + // Remark decopo2 is in BAR, even though unit system is + // Imperial, the desktop version is like that. plannerShared::set_decopo2(1.5); QCOMPARE(qPrefDivePlanner::decopo2(), 1500); plannerShared::set_decopo2(1.6); -- cgit v1.2.3-70-g09d2