subsurface/tests/testdivesiteduplication.cpp
Berthold Stoeger f3e1187e65 Cleanup: move parse-function declarations out of "dive.h"
Move the declaration of these functions to "file.h" and "parse.h"
according to the translation unit they are defined in. Thus, not
all users of "dive.h" have to suck in "sqlite3.h".

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
2019-04-12 18:19:07 +03:00

13 lines
391 B
C++

// SPDX-License-Identifier: GPL-2.0
#include "testdivesiteduplication.h"
#include "core/dive.h"
#include "core/divesite.h"
#include "core/file.h"
void TestDiveSiteDuplication::testReadV2()
{
QCOMPARE(parse_file(SUBSURFACE_TEST_DATA "/dives/TwoTimesTwo.ssrf", &dive_table, &trip_table, &dive_site_table), 0);
QCOMPARE(dive_site_table.nr, 2);
}
QTEST_GUILESS_MAIN(TestDiveSiteDuplication)