Moved code around to make possible to compile the C part alone.

The C code should be compilable without the need to compile the Gui part,
too. This is expecially good for unit testing as we can test all the
algorithms without a window appearing out of nowhere.

Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Tomaz Canabrava 2014-04-17 12:21:39 -03:00 committed by Dirk Hohndel
parent 9598462830
commit 55d010bad8
6 changed files with 169 additions and 144 deletions

9
tests/testprofile.cpp Normal file
View file

@ -0,0 +1,9 @@
#include "testprofile.h"
#include "dive.h"
void TestProfile::testRedCeiling()
{
parse_file("../dives/deep.xml");
}
QTEST_MAIN(TestProfile)