diff options
author | jan Iversen <jan@casacondor.com> | 2019-12-30 17:44:08 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2019-12-31 04:32:34 +0900 |
commit | 2f16f7539e7b24a3732e696c6447d5daf74a0525 (patch) | |
tree | 9fbcbe7e967d8cf57bae99d7a6f7bbc56426adb8 /tests/testplannershared.cpp | |
parent | 24c42b9b5592046fcc5f52ced34da0de1e4624ad (diff) | |
download | subsurface-2f16f7539e7b24a3732e696c6447d5daf74a0525.tar.gz |
tests: correct bestmixend test cases.
When unit system Imperial is properly activated, these test cases
have wrong values, and thus fail.
Use correct values.
Signed-off-by: Jan Iversen <jan@casacondor.com>
Diffstat (limited to 'tests/testplannershared.cpp')
-rw-r--r-- | tests/testplannershared.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/testplannershared.cpp b/tests/testplannershared.cpp index 0c4c2b916..451f67f83 100644 --- a/tests/testplannershared.cpp +++ b/tests/testplannershared.cpp @@ -288,13 +288,13 @@ void TestPlannerShared::test_gas() QCOMPARE(plannerShared::decopo2(), 1.0); plannerShared::set_bestmixend(33); -//Not implemented QCOMPARE(qPrefDivePlanner::bestmixend(), 168); + QCOMPARE(qPrefDivePlanner::bestmixend(), 10058); plannerShared::set_bestmixend(27); -//Not implemented QCOMPARE(qPrefDivePlanner::bestmixend(), 137); - qPrefDivePlanner::set_bestmixend(203); -//Not implemented QCOMPARE(plannerShared::bestmixend(), 40); - qPrefDivePlanner::set_bestmixend(178); -//Not implemented QCOMPARE(plannerShared::bestmixend(), 35); + QCOMPARE(qPrefDivePlanner::bestmixend(), 8230); + qPrefDivePlanner::set_bestmixend(11000); + QCOMPARE(plannerShared::bestmixend(), 36); + qPrefDivePlanner::set_bestmixend(7000); + QCOMPARE(plannerShared::bestmixend(), 23); // Variables currently not tested // o2narcotic |