mirror of
https://github.com/subsurface/subsurface.git
synced 2024-12-11 03:21:29 +00:00
ec0c6833a0
Fixes a bug reported in https://groups.google.com/g/subsurface-divelog/c/8N3cTz2Zv5E: When planning a CCR dive with OC bailout, the diluent gas may be chosen as the first OC bailout gas, despite being set up with a use type of 'diluent', and likely not being available for open circuit breathing. `best_first_ascend_cylinder` is now initialised to an invalid value (instead of the first cylinder, which may or may not be a diluent cylinder), and its subsequent use is guarded by a validity check. Signed-off-by: Michael Keller <github@ike.ch>
25 lines
589 B
C++
25 lines
589 B
C++
// SPDX-License-Identifier: GPL-2.0
|
|
#ifndef TESTPLAN_H
|
|
#define TESTPLAN_H
|
|
|
|
#include <QTest>
|
|
|
|
class TestPlan : public QObject {
|
|
Q_OBJECT
|
|
private slots:
|
|
void testMetric();
|
|
void testImperial();
|
|
void testVpmbMetric45m30minTx();
|
|
void testVpmbMetric60m10minTx();
|
|
void testVpmbMetric60m30minAir();
|
|
void testVpmbMetric60m30minEan50();
|
|
void testVpmbMetric60m30minTx();
|
|
void testVpmbMetric100m60min();
|
|
void testVpmbMetricMultiLevelAir();
|
|
void testVpmbMetric100m10min();
|
|
void testVpmbMetricRepeat();
|
|
void testMultipleGases();
|
|
void testCcrBailoutGasSelection();
|
|
};
|
|
|
|
#endif // TESTPLAN_H
|