summaryrefslogtreecommitdiffstats
path: root/tests/testqPrefUnits.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/testqPrefUnits.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/testqPrefUnits.cpp')
-rw-r--r--tests/testqPrefUnits.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/testqPrefUnits.cpp b/tests/testqPrefUnits.cpp
index 8d9178863..5291afa14 100644
--- a/tests/testqPrefUnits.cpp
+++ b/tests/testqPrefUnits.cpp
@@ -74,7 +74,7 @@ void TestQPrefUnits::test_set_load_struct()
auto tst = qPrefUnits::instance();
- tst->set_coordinates_traditional(false);
+ tst->set_coordinates_traditional(true);
tst->set_duration_units(units::MINUTES_ONLY);
tst->set_length(units::FEET);
tst->set_pressure(units::PSI);
@@ -85,7 +85,7 @@ void TestQPrefUnits::test_set_load_struct()
tst->set_weight(units::LBS);
tst->sync();
- prefs.coordinates_traditional = true;
+ prefs.coordinates_traditional = false;
prefs.units.duration_units = units::MIXED;
prefs.units.length = units::METERS;
prefs.units.pressure = units::BAR;
@@ -96,7 +96,7 @@ void TestQPrefUnits::test_set_load_struct()
prefs.units.weight = units::KG;
tst->load();
- QCOMPARE(prefs.coordinates_traditional, false);
+ QCOMPARE(prefs.coordinates_traditional, true);
QCOMPARE(prefs.units.duration_units, units::MINUTES_ONLY);
QCOMPARE(prefs.units.length, units::FEET);
QCOMPARE(prefs.units.pressure, units::PSI);