summaryrefslogtreecommitdiffstats
path: root/tests/testplannershared.cpp
blob: eb03f1345942284f00faeea6b76d0d7b2beeb3e6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
// SPDX-License-Identifier: GPL-2.0
#include "testplannershared.h"
#include "backend-shared/plannershared.h"

#include <QTest>
#include <QSignalSpy>

void TestPlannerShared::initTestCase()
{
	QCoreApplication::setOrganizationName("Subsurface");
	QCoreApplication::setOrganizationDomain("subsurface.hohndel.org");
	QCoreApplication::setApplicationName("SubsurfaceTestPlannerShared");
	plannerShared::instance();
}

void TestPlannerShared::test_rates()

{
	// Rates all use meters pr time unit
	// test values have been researched with official subsurface 4.9.3

	// UI (meters) - plist value       UI (feet) - plist value
	//    16m      -    267               33f    -     168
	//     7m      -    117               27f    -     137
	//     8m      -    133               40f    -     203
	//    10m      -    167               35f    -     178

	// Variables to test
	// ascratelast6m
	// ascratestops
	// ascrate50
	// ascrate75
	// descrate
}

void TestPlannerShared::test_planning()
{
	// Variables to test
	// dive_mode
	//OC, CCR, PSCR, FREEDIVE, NUM_DIVEMODE, UNDEF_COMP_TYPE

	// planner_deco_mode
	// dobailout
	// reserve_gas
	// safetystop
	// gflow
	// gfhigh
	// vpmb_conservatism
	// drop_stone_mode
	// last_stop
	// switch_at_req_stop
	// doo2breaks
	// min_switch_duration
}

void TestPlannerShared::test_gas()
{
	// Variables to test
	// bottomsac
	// decosac
	// problemsolvingtime
	// sacfactor
	// o2narcotic
	// bottompo2
	// decopo2
	// bestmixend
}

void TestPlannerShared::test_notes()
{
	// Variables to test
	// display_runtime
	// display_duration
	// display_transitions
	// verbatim_plan
	// display_variations
}

QTEST_MAIN(TestPlannerShared)