cleanup: remove unsaved_changes() test in testrenumber.cpp

Unsaved changes are now kept track by the undo-system. No need
to test for this function when directly modifying the core
data structures.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
Berthold Stoeger 2020-10-21 23:23:13 +02:00 committed by Dirk Hohndel
parent fa6235d035
commit d403532a86

View file

@ -23,8 +23,6 @@ void TestRenumber::testMerge()
QCOMPARE(parse_file(SUBSURFACE_TEST_DATA "/dives/test47b.xml", &table, &trips, &sites, &devices, &filter_presets), 0);
add_imported_dives(&table, &trips, &sites, &devices, IMPORT_MERGE_ALL_TRIPS);
QCOMPARE(dive_table.nr, 1);
QCOMPARE(unsaved_changes(), 1);
mark_divelist_changed(false);
}
void TestRenumber::testMergeAndAppend()
@ -37,7 +35,6 @@ void TestRenumber::testMergeAndAppend()
QCOMPARE(parse_file(SUBSURFACE_TEST_DATA "/dives/test47c.xml", &table, &trips, &sites, &devices, &filter_presets), 0);
add_imported_dives(&table, &trips, &sites, &devices, IMPORT_MERGE_ALL_TRIPS);
QCOMPARE(dive_table.nr, 2);
QCOMPARE(unsaved_changes(), 1);
struct dive *d = get_dive(1);
QVERIFY(d != NULL);
if (d)