diff options
author | Tomaz Canabrava <tcanabrava@kde.org> | 2016-10-14 09:47:19 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2016-10-15 12:20:30 -0700 |
commit | 56fff9de6b1cda497f78a163d8e983bf6887441c (patch) | |
tree | a8f020e93ee22d23754f5538dbc32cefb91cd265 /tests | |
parent | 503e1e4c286db555716a8cf81c4d22b6954a12d8 (diff) | |
download | subsurface-56fff9de6b1cda497f78a163d8e983bf6887441c.tar.gz |
Test TecDetails
Biggest test that I created. test all of TecDetails
information. Untested.
Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/testpreferences.cpp | 107 |
1 files changed, 107 insertions, 0 deletions
diff --git a/tests/testpreferences.cpp b/tests/testpreferences.cpp index f3d00a1d6..b22fb4e48 100644 --- a/tests/testpreferences.cpp +++ b/tests/testpreferences.cpp @@ -94,6 +94,113 @@ void TestPreferences::testPreferences() TEST(dc->dc_vendor(), QStringLiteral("Sharewater")); dc->setVendor("OSTS"); TEST(dc->dc_vendor(), QStringLiteral("OSTS")); + + auto tecDetails = pref->techDetails; + tecDetails->setModp02(0.2); + TEST(tecDetails->modp02(), 0.2); + tecDetails->setModp02(1.0); + TEST(tecDetails->modp02(), 1.0); + + tecDetails->setGflow(2); + TEST(tecDetails->gflow(), 2); + tecDetails->setGflow(3); + TEST(tecDetails->gflow(), 3); + + tecDetails->setGfhigh(4); + TEST(tecDetails->gfhigh(), 4); + tecDetails->setGfhigh(5); + TEST(tecDetails->gfhigh(), 5); + + tecDetails->setVpmbConservatism(5); + TEST(tecDetails->vpmbConservatism(), (short)5); + tecDetails->setVpmbConservatism(6); + TEST(tecDetails->vpmbConservatism(), (short)6); + + tecDetails->setEad(true); + TEST(tecDetails->ead(), true); + tecDetails->setMod(true); + TEST(tecDetails->mod(), true); + tecDetails->setDCceiling(true); + TEST(tecDetails->dcceiling(), true); + tecDetails->setRedceiling(true); + TEST(tecDetails->redceiling(), true); + tecDetails->setCalcceiling(true); + TEST(tecDetails->calcceiling(), true); + tecDetails->setCalcceiling3m(true); + TEST(tecDetails->calcceiling3m(), true); + tecDetails->setCalcalltissues(true); + TEST(tecDetails->calcalltissues(), true); + tecDetails->setCalcndltts(true); + TEST(tecDetails->calcndltts(), true); + tecDetails->setBuehlmann(true); + TEST(tecDetails->buehlmann(), true); + tecDetails->setHRgraph(true); + TEST(tecDetails->hrgraph(), true); + tecDetails->setTankBar(true); + TEST(tecDetails->tankBar(), true); + tecDetails->setPercentageGraph(true); + TEST(tecDetails->percentageGraph(), true); + tecDetails->setRulerGraph(true); + TEST(tecDetails->rulerGraph(), true); + tecDetails->setShowCCRSetpoint(true); + TEST(tecDetails->showCCRSetpoint(), true); + tecDetails->setShowCCRSensors(true); + TEST(tecDetails->showCCRSensors(), true); + tecDetails->setZoomedPlot(true); + TEST(tecDetails->zoomedPlot(), true); + tecDetails->setShowSac(true); + TEST(tecDetails->showSac(), true); + tecDetails->setGfLowAtMaxDepth(true); + TEST(tecDetails->gfLowAtMaxDepth(), true); + tecDetails->setDisplayUnusedTanks(true); + TEST(tecDetails->displayUnusedTanks(), true); + tecDetails->setShowAverageDepth(true); + TEST(tecDetails->showAverageDepth(), true); + tecDetails->setShowPicturesInProfile(true); + TEST(tecDetails->showPicturesInProfile(), true); + + tecDetails->setEad(false); + TEST(tecDetails->ead(), false); + tecDetails->setMod(false); + TEST(tecDetails->mod(), false); + tecDetails->setDCceiling(false); + TEST(tecDetails->dcceiling(), false); + tecDetails->setRedceiling(false); + TEST(tecDetails->redceiling(), false); + tecDetails->setCalcceiling(false); + TEST(tecDetails->calcceiling(), false); + tecDetails->setCalcceiling3m(false); + TEST(tecDetails->calcceiling3m(), false); + tecDetails->setCalcalltissues(false); + TEST(tecDetails->calcalltissues(), false); + tecDetails->setCalcndltts(false); + TEST(tecDetails->calcndltts(), false); + tecDetails->setBuehlmann(false); + TEST(tecDetails->buehlmann(), false); + tecDetails->setHRgraph(false); + TEST(tecDetails->hrgraph(), false); + tecDetails->setTankBar(false); + TEST(tecDetails->tankBar(), false); + tecDetails->setPercentageGraph(false); + TEST(tecDetails->percentageGraph(), false); + tecDetails->setRulerGraph(false); + TEST(tecDetails->rulerGraph(), false); + tecDetails->setShowCCRSetpoint(false); + TEST(tecDetails->showCCRSetpoint(), false); + tecDetails->setShowCCRSensors(false); + TEST(tecDetails->showCCRSensors(), false); + tecDetails->setZoomedPlot(false); + TEST(tecDetails->zoomedPlot(), false); + tecDetails->setShowSac(false); + TEST(tecDetails->showSac(), false); + tecDetails->setGfLowAtMaxDepth(false); + TEST(tecDetails->gfLowAtMaxDepth(), false); + tecDetails->setDisplayUnusedTanks(false); + TEST(tecDetails->displayUnusedTanks(), false); + tecDetails->setShowAverageDepth(false); + TEST(tecDetails->showAverageDepth(), false); + tecDetails->setShowPicturesInProfile(false); + TEST(tecDetails->showPicturesInProfile(), false); } QTEST_MAIN(TestPreferences) |