subsurface/tests
Jeremie Guichard 597539ce39 Fix double to int truncation in C++ code
Wfloat-conversion enabled for C++ part of the code
Fix warnings raised by the flag using lrint

Original issue reported on the mailing list:
The ascent/descent rates are sometimes not what is expected.
E.g. setting the ascent rate to 10m/min results in an actual
ascent rate of 9m/min.
This is due to truncating the ascent rate preference,
then effectively rounding up the time to reach each stop to 2s intervals.
The result being that setting the ascent rate to 10m/min
results in 20s to ascend 3m (9m/min), when it should be exactly 18s.

Reported-by: John Smith <noseygit@hotmail.com>
Reported-by: Rick Walsh <rickmwalsh@gmail.com>
Signed-off-by: Jeremie Guichard <djebrest@gmail.com>
2017-03-24 09:39:25 -07:00
..
CMakeLists.txt Fix error in install target for tests on Windows 2017-03-11 08:05:22 -08:00
testdivesiteduplication.cpp Use SUBSURFACE_TEST_DATA definition to point to test data dir 2017-02-24 01:10:22 -08:00
testdivesiteduplication.h Add test for dive site duplication bug 2015-08-30 10:32:38 -07:00
testgitstorage.cpp Use QTest cleanup method for proper test shutdown 2017-03-04 12:03:33 -08:00
testgitstorage.h Use QTest cleanup method for proper test shutdown 2017-03-04 12:03:33 -08:00
testgpscoords.cpp Our tests are actually GUILESS 2017-02-05 14:45:25 -08:00
testgpscoords.h Add test for more GPS coordinates 2015-10-07 17:18:44 +01:00
testmerge.cpp Use QTest cleanup method for proper test shutdown 2017-03-04 12:03:33 -08:00
testmerge.h Use QTest cleanup method for proper test shutdown 2017-03-04 12:03:33 -08:00
testparse.cpp Rework TestParse to make tests independent from each other 2017-03-04 12:03:33 -08:00
testparse.h Rework TestParse to make tests independent from each other 2017-03-04 12:03:33 -08:00
testpicture.cpp Use SUBSURFACE_TEST_DATA definition to point to test data dir 2017-02-24 01:10:22 -08:00
testpicture.h Test for basic image handling 2017-02-21 13:14:56 -08:00
testplan.cpp Fix double to int truncation in C++ code 2017-03-24 09:39:25 -07:00
testplan.h Tests for minimum gas 2017-03-19 17:11:52 -07:00
testpreferences.cpp Fix failures in TestPreferences for Windows run 2017-03-11 08:05:22 -08:00
testpreferences.h Fix failures in TestPreferences for Windows run 2017-03-11 08:05:22 -08:00
testprofile.cpp Our tests are actually GUILESS 2017-02-05 14:45:25 -08:00
testprofile.h Moved code around to make possible to compile the C part alone. 2014-04-17 08:46:29 -07:00
testrenumber.cpp Use SUBSURFACE_TEST_DATA definition to point to test data dir 2017-02-24 01:10:22 -08:00
testrenumber.h Add test for import, merge and renumbering 2015-10-05 16:35:09 +01:00
testunitconversion.cpp Our tests are actually GUILESS 2017-02-05 14:45:25 -08:00
testunitconversion.h First test case implemented. 2014-04-14 11:49:49 -07:00