X-Git-Url: http://plrg.eecs.uci.edu/git/?p=libcds.git;a=blobdiff_plain;f=test%2Funit%2Fintrusive-set%2Ftest_intrusive_feldman_hashset_hp.h;h=9036861da01e5bc31539084cf799d30fb973bb78;hp=17dd9ec956e209e905975fb96524b992d5583ec8;hb=744211978eaf0cbcd9139d07b8dfd6f72651b39f;hpb=39abc7398158e353b8aab234c6cc2574479ac05e diff --git a/test/unit/intrusive-set/test_intrusive_feldman_hashset_hp.h b/test/unit/intrusive-set/test_intrusive_feldman_hashset_hp.h index 17dd9ec9..9036861d 100644 --- a/test/unit/intrusive-set/test_intrusive_feldman_hashset_hp.h +++ b/test/unit/intrusive-set/test_intrusive_feldman_hashset_hp.h @@ -5,7 +5,7 @@ Source code repo: http://github.com/khizmax/libcds/ Download: http://sourceforge.net/projects/libcds/files/ - + Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: @@ -25,7 +25,7 @@ SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE - OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ #ifndef CDSUNIT_SET_TEST_INTRUSIVE_FELDMAN_HASHSET_HP_H @@ -88,16 +88,16 @@ namespace cds_test { for ( auto idx : indices ) { auto& i = data[idx]; - EXPECT_EQ( i.nFindCount, 0 ); + EXPECT_EQ( i.nFindCount, 0u ); gp = s.get( i.key() ); ASSERT_FALSE( !gp ); ++gp->nFindCount; - EXPECT_EQ( i.nFindCount, 1 ); + EXPECT_EQ( i.nFindCount, 1u ); gp = s.extract( i.key()); ASSERT_FALSE( !gp ); ++gp->nEraseCount; - EXPECT_EQ( i.nEraseCount, 1 ); + EXPECT_EQ( i.nEraseCount, 1u ); gp = s.extract( i.key() ); ASSERT_TRUE( !gp ); @@ -113,7 +113,7 @@ namespace cds_test { // Force retiring cycle Set::gc::force_dispose(); for ( auto& i : data ) { - EXPECT_EQ( i.nDisposeCount, 1 ); + EXPECT_EQ( i.nDisposeCount, 1u ); } // erase_at( iterator ) @@ -134,7 +134,7 @@ namespace cds_test { // Force retiring cycle Set::gc::force_dispose(); for ( auto& i : data ) { - EXPECT_EQ( i.nDisposeCount, 1 ); + EXPECT_EQ( i.nDisposeCount, 1u ); } // erase_at( reverse_iterator ) @@ -155,7 +155,7 @@ namespace cds_test { // Force retiring cycle Set::gc::force_dispose(); for ( auto& i : data ) { - EXPECT_EQ( i.nDisposeCount, 1 ); + EXPECT_EQ( i.nDisposeCount, 1u ); } } };