Fix bug in map header test
[libcds.git] / tests / test-hdr / map / hdr_map.h
index f4961e74d9286a0b8e5fb3cbe7fcc8861accf0d3..d27b3551c96d7f23ae604d4276207a698ce99102 100644 (file)
@@ -608,7 +608,7 @@ namespace map {
                 for ( iterator it = m.begin(), itEnd = m.end(); it != itEnd; ++it ) {
                     iterator it2 = it;
                     CPPUNIT_CHECK( it2 == it );
-                    CPPUNIT_CHECK( it2 == itEnd );
+                    CPPUNIT_CHECK( it2 != itEnd );
                     CPPUNIT_ASSERT( it->first * 2 == (*it).second.m_val );
                     it->second = it->first;
                 }