Add tests for formatDiveGasString

This adds tests for formatDiveGasString to ensure it produces the
expected results in some scenarios.

Signed-off-by: Anton Lundin <glance@ac2.se>
This commit is contained in:
Anton Lundin 2023-10-12 21:38:54 +02:00 committed by Michael Keller
parent 725b70e64c
commit bba0da589b
3 changed files with 193 additions and 0 deletions

View file

@ -0,0 +1,19 @@
// SPDX-License-Identifier: GPL-2.0
#include <QtTest>
class TestformatDiveGasString : public QObject {
Q_OBJECT
private slots:
void init();
void test_empty();
void test_air();
void test_nitrox();
void test_nitrox_not_use();
void test_nitrox_deco();
void test_reverse_nitrox_deco();
void test_trimix();
void test_trimix_deco();
void test_reverse_trimix_deco();
void test_ccr();
};