From 86dae550cf5ec3655ccf5ec27883972ef1add993 Mon Sep 17 00:00:00 2001 From: Lauri Nurmi Date: Mon, 28 Oct 2024 12:24:45 +0200 Subject: [PATCH] Add a trivial test for wxArchiveIterator::operator=() It is necessary to call operator=() in tests to ensure it even compiles. --- tests/archive/archivetest.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/archive/archivetest.cpp b/tests/archive/archivetest.cpp index 09b40ff155..e35c11d570 100644 --- a/tests/archive/archivetest.cpp +++ b/tests/archive/archivetest.cpp @@ -1028,6 +1028,11 @@ void ArchiveTestCase::TestSmartIterator(wxInputStream& in) for (CatalogIter it = cat.begin(); it != cat.end(); ++it) CPPUNIT_ASSERT(m_testEntries.count((*it)->GetName(wxPATH_UNIX))); + + Iter a, b; + // test assignment + a = b; + CPPUNIT_ASSERT(a == b); } // pair iterator using smart pointers