summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorGravatar jan Iversen <jan@casacondor.com>2019-12-27 16:44:30 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2019-12-29 01:17:04 +0900
commit9229681b988c1f972cd6c311f956e54215e7c569 (patch)
tree08ccba499d01fa1bf99c30f72b9477aba1399c59 /tests
parentd2c460eaacfb5dcb4d31b513abd2e35625eed24f (diff)
downloadsubsurface-9229681b988c1f972cd6c311f956e54215e7c569.tar.gz
tests: add research values for diveplanning.
This commit contains the researched values used for diveplanning, which form the basis for the test cases. Signed-off-by: Jan Iversen <jan@casacondor.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/testplannershared.cpp61
1 files changed, 46 insertions, 15 deletions
diff --git a/tests/testplannershared.cpp b/tests/testplannershared.cpp
index eb2b4ae44..89d2aab9c 100644
--- a/tests/testplannershared.cpp
+++ b/tests/testplannershared.cpp
@@ -15,18 +15,51 @@ void TestPlannerShared::initTestCase()
plannerShared::instance();
}
-void TestPlannerShared::test_rates()
-{
- // Rates all use meters pr time unit
- // test values have been researched with official subsurface 4.9.3
+// test values have been researched with official subsurface 4.9.3
+//
+// research have been done by using the UI of subsurface, while
+// checking the content of org.hohndel.subsurface.Subsurface.plist
+// (securing UI value it not the default)
+//
+// All test have been done on a iMac Pro with Catalina 10.15.2, values in the plist
+// might be different on other systems.
+// if you experience such problems, please report these so a proper adjustment can
+// be made.
+//
+// meters pr time unit and feet pr time unit
+// UI (meters) - plist value UI (feet) - plist value
+// 16m - 267 33f - 168
+// 7m - 117 27f - 137
+// 8m - 133 40f - 203
+// 10m - 167 35f - 178
+//
+// 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
+// 8l - 8000 0,4cuft - 11327
+// 10l - 10000 0,7cuft - 19822
+//
+// bar pr time unit and psi pr time unit
+// UI (bar) - plist value UI (psi) - plist value
+// 1,5b - 1500 1,5psi - 1500
+// 1,6b - 1600 1,3psi - 1300
+// 1,2b - 1200 1,1psi - 1100
+// 1,0b - 1000 1,0psi - 1000
+//
+// sac factor
+// UI - plist value
+// 4,2 - 420
+// 3,5 - 350
+// 2,8 - 280
+// 2,0 - 200
- // UI (meters) - plist value UI (feet) - plist value
- // 16m - 267 33f - 168
- // 7m - 117 27f - 137
- // 8m - 133 40f - 203
- // 10m - 167 35f - 178
+
+void TestPlannerShared::test_rates()
+
+{
// Set system to use meters
qPrefUnits::set_unit_system(QStringLiteral("metric"));
@@ -126,10 +159,8 @@ void TestPlannerShared::test_rates()
void TestPlannerShared::test_planning()
{
- // Variables to test
- // dive_mode
- //OC, CCR, PSCR, FREEDIVE, NUM_DIVEMODE, UNDEF_COMP_TYPE
-
+ // Variables currently not tested
+ // dive_mode: OC, CCR, PSCR, FREEDIVE, NUM_DIVEMODE, UNDEF_COMP_TYPE
// planner_deco_mode
// dobailout
// reserve_gas
@@ -146,7 +177,7 @@ void TestPlannerShared::test_planning()
void TestPlannerShared::test_gas()
{
- // Variables to test
+ // Variables currently not tested
// bottomsac
// decosac
// problemsolvingtime
@@ -159,7 +190,7 @@ void TestPlannerShared::test_gas()
void TestPlannerShared::test_notes()
{
- // Variables to test
+ // Variables currently not tested
// display_runtime
// display_duration
// display_transitions