summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar jan Iversen <jan@casacondor.com>2019-12-30 17:12:57 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2019-12-31 04:32:34 +0900
commit24c42b9b5592046fcc5f52ced34da0de1e4624ad (patch)
tree1c1548a2e5b7d4b4c5cd47e97d3b36b35c2c5964
parent694fcffa6e3c9cff32b1934b1b5779a1a0aaa83c (diff)
downloadsubsurface-24c42b9b5592046fcc5f52ced34da0de1e4624ad.tar.gz
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 <jan@casacondor.com>
-rw-r--r--tests/testplannershared.cpp6
1 files changed, 5 insertions, 1 deletions
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);