Add a trivial test for wxArchiveIterator::operator=()

It is necessary to call operator=() in tests to ensure it even
compiles.
This commit is contained in:
Lauri Nurmi
2024-10-28 12:27:14 +02:00
parent c70a281c33
commit 86dae550cf
+5
View File
@@ -1028,6 +1028,11 @@ void ArchiveTestCase<ClassFactoryT>::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