mirror of
https://github.com/wxWidgets/wxWidgets.git
synced 2026-09-23 14:45:04 +08:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user