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>
This commit is contained in:
jan Iversen 2019-12-30 17:44:08 +01:00 committed by Dirk Hohndel
parent 24c42b9b55
commit 2f16f7539e

View file

@ -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