diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2020-10-21 23:23:13 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2020-10-25 13:59:04 -0700 |
commit | d403532a864f5cfc9f2c5e8a62edfcdaacdd105a (patch) | |
tree | b4b711107707d3a85d69b63a8b164555e1d6e16e /tests/testrenumber.cpp | |
parent | fa6235d03510558ab381d57e771ad59d7e4769e1 (diff) | |
download | subsurface-d403532a864f5cfc9f2c5e8a62edfcdaacdd105a.tar.gz |
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>
Diffstat (limited to 'tests/testrenumber.cpp')
-rw-r--r-- | tests/testrenumber.cpp | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/tests/testrenumber.cpp b/tests/testrenumber.cpp index 69ab15b22..2c4921461 100644 --- a/tests/testrenumber.cpp +++ b/tests/testrenumber.cpp @@ -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) |