mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Add test for dive site duplication bug
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
e0587cb6df
commit
1b37e0f1a4
4 changed files with 57 additions and 0 deletions
11
tests/testdivesiteduplication.cpp
Normal file
11
tests/testdivesiteduplication.cpp
Normal file
|
@ -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)
|
13
tests/testdivesiteduplication.h
Normal file
13
tests/testdivesiteduplication.h
Normal file
|
@ -0,0 +1,13 @@
|
|||
#ifndef TESTDIVESITEDUPLICATION_H
|
||||
#define TESTDIVESITEDUPLICATION_H
|
||||
|
||||
#include <QTest>
|
||||
|
||||
class TestDiveSiteDuplication : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
private slots:
|
||||
void testReadV2();
|
||||
};
|
||||
|
||||
#endif // TESTDIVESITEDUPLICATION_H
|
Loading…
Add table
Add a link
Reference in a new issue