summaryrefslogtreecommitdiffstats
path: root/tests/testqPrefDivePlanner.cpp
diff options
context:
space:
mode:
authorGravatar jan Iversen <jani@apache.org>2018-09-02 09:13:04 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2018-09-07 14:37:18 -0700
commita93ecf3912bcd78930487b0e05f41ebd5c6e7ed4 (patch)
tree71e64c5d6ff705989ea68c7d3823752eb5100476 /tests/testqPrefDivePlanner.cpp
parentee6b5643b5581ec3fda3873543f9275235ae0598 (diff)
downloadsubsurface-a93ecf3912bcd78930487b0e05f41ebd5c6e7ed4.tar.gz
tests: update qPref* to the shadow variable
The shadow variable causes properties only to be saved when actual changed, therefore some test cases need update Signed-off-by: Jan Iversen <jani@apache.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'tests/testqPrefDivePlanner.cpp')
-rw-r--r--tests/testqPrefDivePlanner.cpp60
1 files changed, 30 insertions, 30 deletions
diff --git a/tests/testqPrefDivePlanner.cpp b/tests/testqPrefDivePlanner.cpp
index 173bc1d96..a33033766 100644
--- a/tests/testqPrefDivePlanner.cpp
+++ b/tests/testqPrefDivePlanner.cpp
@@ -152,21 +152,21 @@ void TestQPrefDivePlanner::test_set_load_struct()
tst->set_decopo2(26);
tst->set_decosac(27);
tst->set_descrate(28);
- tst->set_display_duration(false);
- tst->set_display_runtime(false);
- tst->set_display_transitions(false);
- tst->set_display_variations(false);
- tst->set_doo2breaks(false);
- tst->set_drop_stone_mode(false);
- tst->set_last_stop(false);
+ tst->set_display_duration(true);
+ tst->set_display_runtime(true);
+ tst->set_display_transitions(true);
+ tst->set_display_variations(true);
+ tst->set_doo2breaks(true);
+ tst->set_drop_stone_mode(true);
+ tst->set_last_stop(true);
tst->set_min_switch_duration(29);
tst->set_planner_deco_mode(VPMB);
tst->set_problemsolvingtime(30);
tst->set_reserve_gas(31);
tst->set_sacfactor(32);
- tst->set_safetystop(false);
- tst->set_switch_at_req_stop(false);
- tst->set_verbatim_plan(false);
+ tst->set_safetystop(true);
+ tst->set_switch_at_req_stop(true);
+ tst->set_verbatim_plan(true);
prefs.ascratelast6m = 10;
prefs.ascratestops = 11;
@@ -178,21 +178,21 @@ void TestQPrefDivePlanner::test_set_load_struct()
prefs.decopo2 = 16;
prefs.decosac = 17;
prefs.descrate = 18;
- prefs.display_duration = true;
- prefs.display_runtime = true;
- prefs.display_transitions = true;
- prefs.display_variations = true;
- prefs.doo2breaks = true;
- prefs.drop_stone_mode = true;
- prefs.last_stop = true;
+ prefs.display_duration = false;
+ prefs.display_runtime = false;
+ prefs.display_transitions = false;
+ prefs.display_variations = false;
+ prefs.doo2breaks = false;
+ prefs.drop_stone_mode = false;
+ prefs.last_stop = false;
prefs.min_switch_duration = 19;
prefs.planner_deco_mode = BUEHLMANN;
prefs.problemsolvingtime = 20;
prefs.reserve_gas = 21;
prefs.sacfactor = 22;
- prefs.safetystop = true;
- prefs.switch_at_req_stop = true;
- prefs.verbatim_plan = true;
+ prefs.safetystop = false;
+ prefs.switch_at_req_stop = false;
+ prefs.verbatim_plan = false;
tst->load();
QCOMPARE(prefs.ascratelast6m, 20);
@@ -205,21 +205,21 @@ void TestQPrefDivePlanner::test_set_load_struct()
QCOMPARE(prefs.decopo2, 26);
QCOMPARE(prefs.decosac, 27);
QCOMPARE(prefs.descrate, 28);
- QCOMPARE(prefs.display_duration, false);
- QCOMPARE(prefs.display_runtime, false);
- QCOMPARE(prefs.display_transitions, false);
- QCOMPARE(prefs.display_variations, false);
- QCOMPARE(prefs.doo2breaks, false);
- QCOMPARE(prefs.drop_stone_mode, false);
- QCOMPARE(prefs.last_stop, false);
+ QCOMPARE(prefs.display_duration, true);
+ QCOMPARE(prefs.display_runtime, true);
+ QCOMPARE(prefs.display_transitions, true);
+ QCOMPARE(prefs.display_variations, true);
+ QCOMPARE(prefs.doo2breaks, true);
+ QCOMPARE(prefs.drop_stone_mode, true);
+ QCOMPARE(prefs.last_stop, true);
QCOMPARE(prefs.min_switch_duration, 29);
QCOMPARE(prefs.planner_deco_mode, VPMB);
QCOMPARE(prefs.problemsolvingtime, 30);
QCOMPARE(prefs.reserve_gas, 31);
QCOMPARE(prefs.sacfactor, 32);
- QCOMPARE(prefs.safetystop, false);
- QCOMPARE(prefs.switch_at_req_stop, false);
- QCOMPARE(prefs.verbatim_plan, false);
+ QCOMPARE(prefs.safetystop, true);
+ QCOMPARE(prefs.switch_at_req_stop, true);
+ QCOMPARE(prefs.verbatim_plan, true);
}
void TestQPrefDivePlanner::test_struct_disk()