Changeset 622ab22 in subsurface


Ignore:
Timestamp:
Mar 28, 2017, 11:17:03 AM (2 months ago)
Author:
Dirk Hohndel <dirk@…>
Branches:
master
Children:
eefa390
Parents:
5a235ae
git-author:
Jan Mulder <jlmulder@…> (03/25/17 07:30:08)
git-committer:
Dirk Hohndel <dirk@…> (03/28/17 11:17:03)
Message:

minimal pO2 threshold: corrected testpreferences

Adapt the testpreferences procedure for the new min/max pO2 preference.

Signed-off-by: Jan Mulder <jlmulder@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tests/testpreferences.cpp

    rea4df67b r622ab22  
    188188        pp->setShowPhe(false);
    189189        pp->setShowPo2(false);
    190         pp->setPo2Threshold(1.0);
    191         pp->setPn2Threshold(2.0);
    192         pp->setPheThreshold(3.0);
     190        pp->setPo2ThresholdMin(1.0);
     191        pp->setPo2ThresholdMax(2.0);
     192        pp->setPn2Threshold(3.0);
     193        pp->setPheThreshold(4.0);
    193194
    194195        TEST(pp->showPn2(), (short) false);
    195196        TEST(pp->showPhe(), (short) false);
    196197        TEST(pp->showPo2(), (short) false);
    197         TEST(pp->pn2Threshold(), 2.0);
    198         TEST(pp->pheThreshold(), 3.0);
    199         TEST(pp->po2Threshold(), 1.0);
     198        TEST(pp->pn2Threshold(), 3.0);
     199        TEST(pp->pheThreshold(), 4.0);
     200        TEST(pp->po2ThresholdMin(), 1.0);
     201        TEST(pp->po2ThresholdMax(), 2.0);
    200202
    201203        pp->setShowPn2(true);
    202204        pp->setShowPhe(true);
    203205        pp->setShowPo2(true);
    204         pp->setPo2Threshold(4.0);
    205         pp->setPn2Threshold(5.0);
    206         pp->setPheThreshold(6.0);
     206        pp->setPo2ThresholdMin(4.0);
     207        pp->setPo2ThresholdMax(5.0);
     208        pp->setPn2Threshold(6.0);
     209        pp->setPheThreshold(7.0);
    207210
    208211        TEST(pp->showPn2(), (short) true);
    209212        TEST(pp->showPhe(), (short) true);
    210213        TEST(pp->showPo2(), (short) true);
    211         TEST(pp->pn2Threshold(), 5.0);
    212         TEST(pp->pheThreshold(), 6.0);
    213         TEST(pp->po2Threshold(), 4.0);
     214        TEST(pp->pn2Threshold(), 6.0);
     215        TEST(pp->pheThreshold(), 7.0);
     216        TEST(pp->po2ThresholdMin(), 4.0);
     217        TEST(pp->po2ThresholdMax(), 5.0);
    214218
    215219        auto fb = pref->facebook;
Note: See TracChangeset for help on using the changeset viewer.