diff options
Diffstat (limited to 'tests/testrenumber.cpp')
-rw-r--r-- | tests/testrenumber.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/testrenumber.cpp b/tests/testrenumber.cpp index 9d1289906..53da23f65 100644 --- a/tests/testrenumber.cpp +++ b/tests/testrenumber.cpp @@ -13,9 +13,9 @@ void TestRenumber::setup() void TestRenumber::testMerge() { - struct dive_table table = { 0 }; - struct trip_table trips = { 0 }; - struct dive_site_table sites = { 0 }; + struct dive_table table = empty_dive_table; + struct trip_table trips = empty_trip_table; + struct dive_site_table sites = empty_dive_site_table; QCOMPARE(parse_file(SUBSURFACE_TEST_DATA "/dives/test47b.xml", &table, &trips, &sites), 0); add_imported_dives(&table, &trips, &sites, IMPORT_MERGE_ALL_TRIPS); QCOMPARE(dive_table.nr, 1); @@ -25,9 +25,9 @@ void TestRenumber::testMerge() void TestRenumber::testMergeAndAppend() { - struct dive_table table = { 0 }; - struct trip_table trips = { 0 }; - struct dive_site_table sites = { 0 }; + struct dive_table table = empty_dive_table; + struct trip_table trips = empty_trip_table; + struct dive_site_table sites = empty_dive_site_table; QCOMPARE(parse_file(SUBSURFACE_TEST_DATA "/dives/test47c.xml", &table, &trips, &sites), 0); add_imported_dives(&table, &trips, &sites, IMPORT_MERGE_ALL_TRIPS); QCOMPARE(dive_table.nr, 2); |