summaryrefslogtreecommitdiffstats
path: root/tests/testprofile.cpp
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tomaz.canabrava@intel.com>2014-04-17 12:21:39 -0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-04-17 08:46:29 -0700
commit55d010bad839b503cbfa759498d18690f4a809ae (patch)
tree9139b3108d7eefa8a6a0b73cd109a93b02812e66 /tests/testprofile.cpp
parent95984628302bee02af3e82ac305b5e3bb4842533 (diff)
downloadsubsurface-55d010bad839b503cbfa759498d18690f4a809ae.tar.gz
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>
Diffstat (limited to 'tests/testprofile.cpp')
-rw-r--r--tests/testprofile.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/testprofile.cpp b/tests/testprofile.cpp
new file mode 100644
index 000000000..d8aea3cae
--- /dev/null
+++ b/tests/testprofile.cpp
@@ -0,0 +1,9 @@
+#include "testprofile.h"
+#include "dive.h"
+
+void TestProfile::testRedCeiling()
+{
+ parse_file("../dives/deep.xml");
+}
+
+QTEST_MAIN(TestProfile) \ No newline at end of file