From 2f16f7539e7b24a3732e696c6447d5daf74a0525 Mon Sep 17 00:00:00 2001 From: jan Iversen Date: Mon, 30 Dec 2019 17:44:08 +0100 Subject: 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 --- tests/testplannershared.cpp | 12 ++++++------ 1 file 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 -- cgit v1.2.3-70-g09d2