summaryrefslogtreecommitdiffstats
path: root/tests/testdivesiteduplication.cpp
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2015-08-30 10:32:38 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-08-30 10:32:38 -0700
commit1b37e0f1a4e4225026e7c5b2c15f178a9c75b2ad (patch)
tree3cdb1dc255de940ac2e1d5ef34c9348daafc2472 /tests/testdivesiteduplication.cpp
parente0587cb6dfbc56feb9fd1edfc7bcdd64b7142653 (diff)
downloadsubsurface-1b37e0f1a4e4225026e7c5b2c15f178a9c75b2ad.tar.gz
Add test for dive site duplication bug
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'tests/testdivesiteduplication.cpp')
-rw-r--r--tests/testdivesiteduplication.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/testdivesiteduplication.cpp b/tests/testdivesiteduplication.cpp
new file mode 100644
index 000000000..fc8ba0a1e
--- /dev/null
+++ b/tests/testdivesiteduplication.cpp
@@ -0,0 +1,11 @@
+#include "testdivesiteduplication.h"
+#include "dive.h"
+#include "divesite.h"
+
+void TestDiveSiteDuplication::testReadV2()
+{
+ QCOMPARE(parse_file(SUBSURFACE_SOURCE "/dives/TwoTimesTwo.ssrf"), 0);
+ QCOMPARE(dive_site_table.nr, 2);
+}
+
+QTEST_MAIN(TestDiveSiteDuplication)