Fix bug in map header test
authorkhizmax <libcds.dev@gmail.com>
Mon, 3 Nov 2014 06:56:37 +0000 (09:56 +0300)
committerkhizmax <libcds.dev@gmail.com>
Mon, 3 Nov 2014 06:56:37 +0000 (09:56 +0300)
tests/test-hdr/map/hdr_map.h

index f4961e7..d27b355 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;
                 }