X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=test%2Funit%2Fmap%2Ftest_map_nogc.h;h=9f5df9b07bdaad78835d2ba60ab6c8c36eef3fd7;hb=744211978eaf0cbcd9139d07b8dfd6f72651b39f;hp=cc8abb93135dbc1f8eceb042bd618b367afbfafa;hpb=7448008aa977fe42a83738fbbc63ce11d8ab86f9;p=libcds.git diff --git a/test/unit/map/test_map_nogc.h b/test/unit/map/test_map_nogc.h index cc8abb93..9f5df9b0 100644 --- a/test/unit/map/test_map_nogc.h +++ b/test/unit/map/test_map_nogc.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_MAP_TEST_MAP_NOGC_H @@ -124,7 +124,7 @@ namespace cds_test { v.second.strVal = std::to_string( v.first.nKey ); } ); ASSERT_FALSE( it == m.end() ); - ASSERT_TRUE( m.insert_with( i, []( map_pair& v ) { + ASSERT_TRUE( m.insert_with( i, []( map_pair& ) { EXPECT_TRUE( false ); } ) == m.end()); break; @@ -134,7 +134,7 @@ namespace cds_test { v.second.strVal = std::to_string( v.first.nKey ); } ); ASSERT_FALSE( it == m.end() ); - ASSERT_TRUE( m.insert_with( i.nKey, []( map_pair& v ) { + ASSERT_TRUE( m.insert_with( i.nKey, []( map_pair& ) { EXPECT_TRUE( false ); } ) == m.end()); break; @@ -144,7 +144,7 @@ namespace cds_test { v.second.strVal = std::to_string( v.first.nKey ); } ); ASSERT_FALSE( it == m.end() ); - ASSERT_TRUE( m.insert_with( val.strVal, []( map_pair& v ) { + ASSERT_TRUE( m.insert_with( val.strVal, []( map_pair& ) { EXPECT_TRUE( false ); } ) == m.end()); break;