diff options
author | Jan Mulder <jlmulder@xs4all.nl> | 2017-03-25 15:30:08 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2017-03-28 11:17:03 -0700 |
commit | 622ab2286abf23de889b928cdde4b4e234b76fc3 (patch) | |
tree | 1e734f321a56727180a855efe47c9328e08f1b14 /tests/testpreferences.cpp | |
parent | 5a235aea12681796a59ce5c001707c4c7ed206df (diff) | |
download | subsurface-622ab2286abf23de889b928cdde4b4e234b76fc3.tar.gz |
minimal pO2 threshold: corrected testpreferences
Adapt the testpreferences procedure for the new min/max pO2 preference.
Signed-off-by: Jan Mulder <jlmulder@xs4all.nl>
Diffstat (limited to 'tests/testpreferences.cpp')
-rw-r--r-- | tests/testpreferences.cpp | 28 |
1 files changed, 16 insertions, 12 deletions
diff --git a/tests/testpreferences.cpp b/tests/testpreferences.cpp index c01e9ec14..097068a32 100644 --- a/tests/testpreferences.cpp +++ b/tests/testpreferences.cpp @@ -187,30 +187,34 @@ void TestPreferences::testPreferences() pp->setShowPn2(false); pp->setShowPhe(false); pp->setShowPo2(false); - pp->setPo2Threshold(1.0); - pp->setPn2Threshold(2.0); - pp->setPheThreshold(3.0); + pp->setPo2ThresholdMin(1.0); + pp->setPo2ThresholdMax(2.0); + pp->setPn2Threshold(3.0); + pp->setPheThreshold(4.0); TEST(pp->showPn2(), (short) false); TEST(pp->showPhe(), (short) false); TEST(pp->showPo2(), (short) false); - TEST(pp->pn2Threshold(), 2.0); - TEST(pp->pheThreshold(), 3.0); - TEST(pp->po2Threshold(), 1.0); + TEST(pp->pn2Threshold(), 3.0); + TEST(pp->pheThreshold(), 4.0); + TEST(pp->po2ThresholdMin(), 1.0); + TEST(pp->po2ThresholdMax(), 2.0); pp->setShowPn2(true); pp->setShowPhe(true); pp->setShowPo2(true); - pp->setPo2Threshold(4.0); - pp->setPn2Threshold(5.0); - pp->setPheThreshold(6.0); + pp->setPo2ThresholdMin(4.0); + pp->setPo2ThresholdMax(5.0); + pp->setPn2Threshold(6.0); + pp->setPheThreshold(7.0); TEST(pp->showPn2(), (short) true); TEST(pp->showPhe(), (short) true); TEST(pp->showPo2(), (short) true); - TEST(pp->pn2Threshold(), 5.0); - TEST(pp->pheThreshold(), 6.0); - TEST(pp->po2Threshold(), 4.0); + TEST(pp->pn2Threshold(), 6.0); + TEST(pp->pheThreshold(), 7.0); + TEST(pp->po2ThresholdMin(), 4.0); + TEST(pp->po2ThresholdMax(), 5.0); auto fb = pref->facebook; fb->setAccessToken("rand-access-token"); |