mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
units: replace SURFACE_PRESSURE by 1_atm
Moreover, convert diveplan::surface_pressure from int to pressure_t. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
ae81b42fe2
commit
dd5def35f5
11 changed files with 56 additions and 64 deletions
|
@ -34,8 +34,8 @@ void TestAirPressure::testReadAirPressure()
|
|||
|
||||
void TestAirPressure::testConvertAltitudetoAirPressure()
|
||||
{
|
||||
QCOMPARE(891,altitude_to_pressure(1000000)); // 1000 m altitude in mm
|
||||
QCOMPARE(1013,altitude_to_pressure(0)); // sea level
|
||||
QCOMPARE(891, altitude_to_pressure(1000000).mbar); // 1000 m altitude in mm
|
||||
QCOMPARE(1013, altitude_to_pressure(0).mbar); // sea level
|
||||
}
|
||||
|
||||
void TestAirPressure::testWriteReadBackAirPressure()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue