mirror of
https://github.com/subsurface/subsurface.git
synced 2024-12-02 23:20:20 +00:00
7e33369dc8
To allow parsing into arbitrary trip_tables, add the corresponding parameter to the parsing functions and the parser state. Currently, all callers pass the global trip_table so there should be no change in functionality. These arguments will be replaced in subsequent commits. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
12 lines
350 B
C++
12 lines
350 B
C++
// SPDX-License-Identifier: GPL-2.0
|
|
#include "testdivesiteduplication.h"
|
|
#include "core/dive.h"
|
|
#include "core/divesite.h"
|
|
|
|
void TestDiveSiteDuplication::testReadV2()
|
|
{
|
|
QCOMPARE(parse_file(SUBSURFACE_TEST_DATA "/dives/TwoTimesTwo.ssrf", &dive_table, &trip_table), 0);
|
|
QCOMPARE(dive_site_table.nr, 2);
|
|
}
|
|
|
|
QTEST_GUILESS_MAIN(TestDiveSiteDuplication)
|