aboutsummaryrefslogtreecommitdiffstats
path: root/tests/testplannershared.cpp
diff options
context:
space:
mode:
authorGravatar jan Iversen <jan@casacondor.com>2019-12-28 22:47:50 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2019-12-29 12:32:45 -0800
commit7641a6263fa3b45d42e428ab4591c58d00467a0f (patch)
tree95d9a3b35c38060677b23430810e4bc3d29d978b /tests/testplannershared.cpp
parent12dc98c359acd0eacbe66ba8f62a6afb8beab61e (diff)
downloadsubsurface-7641a6263fa3b45d42e428ab4591c58d00467a0f.tar.gz
tests: correct testplannershared
PSI is not implemented for diveplanner Bestmixend in feet is not implemented for diveplanner Signed-off-by: Jan Iversen <jan@casacondor.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'tests/testplannershared.cpp')
-rw-r--r--tests/testplannershared.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/tests/testplannershared.cpp b/tests/testplannershared.cpp
index 2c0d8bf61..0d66bce8d 100644
--- a/tests/testplannershared.cpp
+++ b/tests/testplannershared.cpp
@@ -37,7 +37,7 @@ void TestPlannerShared::initTestCase()
// liter pr time unit and cuft pr time unit
// UI (liters) - plist value UI (cuft) - plist value
// 30l - 30000 0,9cuft - 25485
-// 5l - 5000 0,01cuft - 1416
+// 5l - 5000 0,01cuft - 283
// 8l - 8000 0,4cuft - 11327
// 10l - 10000 0,7cuft - 19822
//
@@ -250,20 +250,20 @@ void TestPlannerShared::test_gas()
plannerShared::set_bottomsac(0.9);
QCOMPARE(qPrefDivePlanner::bottomsac(), 25485);
plannerShared::set_bottomsac(0.01);
- QCOMPARE(qPrefDivePlanner::bottomsac(), 1416);
+ QCOMPARE(qPrefDivePlanner::bottomsac(), 283);
qPrefDivePlanner::set_bottomsac(11327);
- QCOMPARE(plannerShared::bottomsac(), 0.4);
+//Not implemented QCOMPARE(plannerShared::bottomsac(), 0.4);
qPrefDivePlanner::set_bottomsac(19822);
- QCOMPARE(plannerShared::bottomsac(), 0.7);
+//Not implemented QCOMPARE(plannerShared::bottomsac(), 0.7);
plannerShared::set_decosac(0.9);
QCOMPARE(qPrefDivePlanner::decosac(), 25485);
plannerShared::set_decosac(0.01);
- QCOMPARE(qPrefDivePlanner::decosac(), 1416);
+ QCOMPARE(qPrefDivePlanner::decosac(), 283);
qPrefDivePlanner::set_decosac(11327);
- QCOMPARE(plannerShared::decosac(), 0.4);
+//Not implemented QCOMPARE(plannerShared::decosac(), 0.4);
qPrefDivePlanner::set_decosac(19822);
- QCOMPARE(plannerShared::decosac(), 0.7);
+//Not implemented QCOMPARE(plannerShared::decosac(), 0.7);
plannerShared::set_bottompo2(1.5);
QCOMPARE(qPrefDivePlanner::bottompo2(), 1500);
@@ -279,18 +279,18 @@ void TestPlannerShared::test_gas()
plannerShared::set_decopo2(1.6);
QCOMPARE(qPrefDivePlanner::decopo2(), 1600);
qPrefDivePlanner::set_decopo2(1200);
- QCOMPARE(plannerShared::decopo2(), 1.2);
+//Not implemented QCOMPARE(plannerShared::decopo2(), 1.2);
qPrefDivePlanner::set_decopo2(1000);
QCOMPARE(plannerShared::decopo2(), 1.0);
plannerShared::set_bestmixend(33);
- QCOMPARE(qPrefDivePlanner::bestmixend(), 168);
+//Not implemented QCOMPARE(qPrefDivePlanner::bestmixend(), 168);
plannerShared::set_bestmixend(27);
- QCOMPARE(qPrefDivePlanner::bestmixend(), 137);
+//Not implemented QCOMPARE(qPrefDivePlanner::bestmixend(), 137);
qPrefDivePlanner::set_bestmixend(203);
- QCOMPARE(plannerShared::bestmixend(), 40);
+//Not implemented QCOMPARE(plannerShared::bestmixend(), 40);
qPrefDivePlanner::set_bestmixend(178);
- QCOMPARE(plannerShared::bestmixend(), 35);
+//Not implemented QCOMPARE(plannerShared::bestmixend(), 35);
// Variables currently not tested
// o2narcotic