From d403532a864f5cfc9f2c5e8a62edfcdaacdd105a Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Wed, 21 Oct 2020 23:23:13 +0200 Subject: 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 --- tests/testrenumber.cpp | 3 --- 1 file changed, 3 deletions(-) (limited to 'tests') 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) -- cgit v1.2.3-70-g09d2