mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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:
parent
725b70e64c
commit
bba0da589b
3 changed files with 193 additions and 0 deletions
19
tests/testformatDiveGasString.h
Normal file
19
tests/testformatDiveGasString.h
Normal 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();
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue