diff --git a/test/unordered/reserve_tests.cpp b/test/unordered/reserve_tests.cpp index fbaa99f6..bc3936cf 100644 --- a/test/unordered/reserve_tests.cpp +++ b/test/unordered/reserve_tests.cpp @@ -55,8 +55,8 @@ template struct A : B template void bucket_count_constructor() { - BOOST_TEST_EQ(num_allocations, 0); - BOOST_TEST_EQ(total_allocation, 0); + BOOST_TEST_EQ(num_allocations, 0u); + BOOST_TEST_EQ(total_allocation, 0u); { std::size_t count = 50000; @@ -67,15 +67,15 @@ template void bucket_count_constructor() BOOST_TEST_GE(s.bucket_count(), count); } - BOOST_TEST_GT(num_allocations, 0); - BOOST_TEST_EQ(total_allocation, 0); + BOOST_TEST_GT(num_allocations, 0u); + BOOST_TEST_EQ(total_allocation, 0u); num_allocations = 0; } template void range_bucket_constructor() { - BOOST_TEST_EQ(num_allocations, 0); - BOOST_TEST_EQ(total_allocation, 0); + BOOST_TEST_EQ(num_allocations, 0u); + BOOST_TEST_EQ(total_allocation, 0u); { UnorderedContainer s1; @@ -88,15 +88,15 @@ template void range_bucket_constructor() BOOST_TEST_GE(s2.bucket_count(), count); } - BOOST_TEST_GT(num_allocations, 0); - BOOST_TEST_EQ(total_allocation, 0); + BOOST_TEST_GT(num_allocations, 0u); + BOOST_TEST_EQ(total_allocation, 0u); num_allocations = 0; } template void reserve_tests() { - BOOST_TEST_EQ(num_allocations, 0); - BOOST_TEST_EQ(total_allocation, 0); + BOOST_TEST_EQ(num_allocations, 0u); + BOOST_TEST_EQ(total_allocation, 0u); { UnorderedContainer s; @@ -127,15 +127,15 @@ template void reserve_tests() BOOST_TEST_EQ(num_allocations, prev_allocations); } - BOOST_TEST_GT(num_allocations, 0); - BOOST_TEST_EQ(total_allocation, 0); + BOOST_TEST_GT(num_allocations, 0u); + BOOST_TEST_EQ(total_allocation, 0u); num_allocations = 0; } template void rehash_tests() { - BOOST_TEST_EQ(num_allocations, 0); - BOOST_TEST_EQ(total_allocation, 0); + BOOST_TEST_EQ(num_allocations, 0u); + BOOST_TEST_EQ(total_allocation, 0u); { UnorderedContainer s; @@ -178,8 +178,8 @@ template void rehash_tests() BOOST_TEST_LT(total_allocation, (prev_count + count) * sizeof(void*)); } - BOOST_TEST_GT(num_allocations, 0); - BOOST_TEST_EQ(total_allocation, 0); + BOOST_TEST_GT(num_allocations, 0u); + BOOST_TEST_EQ(total_allocation, 0u); num_allocations = 0; }