X-Git-Url: http://plrg.eecs.uci.edu/git/?p=libcds.git;a=blobdiff_plain;f=test%2Funit%2Fmap%2Ftest_skiplist_hp.h;h=b3a53f855b1feb0786b8a953fd51431af2bbf711;hp=9c99762b339f441c182ff480a97e4b01c27759a7;hb=2402fb1beb25ec532cea91c8dfbb9425eb5bdf48;hpb=264957da64a35ca977799720ab436890d0dbf6f7 diff --git a/test/unit/map/test_skiplist_hp.h b/test/unit/map/test_skiplist_hp.h index 9c99762b..b3a53f85 100644 --- a/test/unit/map/test_skiplist_hp.h +++ b/test/unit/map/test_skiplist_hp.h @@ -59,8 +59,8 @@ namespace cds_test { shuffle( arrKeys.begin(), arrKeys.end()); for ( auto const& i : arrKeys ) - ASSERT_TRUE( m.insert( i ) ); - ASSERT_FALSE( m.empty() ); + ASSERT_TRUE( m.insert( i )); + ASSERT_FALSE( m.empty()); ASSERT_CONTAINER_SIZE( m, kkSize ); // extract_min @@ -69,33 +69,33 @@ namespace cds_test { int nKey = -1; size_t nCount = 0; - while ( !m.empty() ) { + while ( !m.empty()) { gp = m.extract_min(); ASSERT_FALSE( !gp ); EXPECT_EQ( gp->first.nKey, nKey + 1 ); nKey = gp->first.nKey; ++nCount; } - ASSERT_TRUE( m.empty() ); + ASSERT_TRUE( m.empty()); ASSERT_CONTAINER_SIZE( m, 0 ); EXPECT_EQ( nCount, kkSize ); // extract_max for ( auto const& i : arrKeys ) - ASSERT_TRUE( m.insert( i ) ); - ASSERT_FALSE( m.empty() ); + ASSERT_TRUE( m.insert( i )); + ASSERT_FALSE( m.empty()); ASSERT_CONTAINER_SIZE( m, kkSize ); nKey = kkSize; nCount = 0; - while ( !m.empty() ) { + while ( !m.empty()) { gp = m.extract_max(); ASSERT_FALSE( !gp ); EXPECT_EQ( gp->first.nKey, nKey - 1 ); nKey = gp->first.nKey; ++nCount; } - ASSERT_TRUE( m.empty() ); + ASSERT_TRUE( m.empty()); ASSERT_CONTAINER_SIZE( m, 0 ); EXPECT_EQ( nCount, kkSize ); }