- CPPUNIT_ASSERT( t.find( 10 ));
- CPPUNIT_ASSERT( !t.find( 11 ));
- CPPUNIT_ASSERT( t.find( v1 ));
- CPPUNIT_ASSERT( t.find( v2.nKey ));
- CPPUNIT_ASSERT( t.find( v3 ));
- CPPUNIT_ASSERT( t.find( v4.nKey ));
- CPPUNIT_ASSERT( t.find( v5.nKey ));
-
- // find_with
- CPPUNIT_ASSERT( t.find_with( 10, less<value_type>() ));
- CPPUNIT_ASSERT( !t.find_with( wrapped_int(11), wrapped_less<value_type>() ));
- CPPUNIT_ASSERT( t.find_with( v1, less<value_type>() ));
- CPPUNIT_ASSERT( t.find_with( wrapped_int(v2.nKey), wrapped_less<value_type>() ));
- CPPUNIT_ASSERT( t.find_with( v3, less<value_type>() ));
- CPPUNIT_ASSERT( t.find_with( v4.nKey, less<value_type>() ));
- CPPUNIT_ASSERT( t.find_with( v5.nKey, less<value_type>() ));
+ CPPUNIT_ASSERT( t.contains( 10 ));
+ CPPUNIT_ASSERT( !t.contains( 11 ));
+ CPPUNIT_ASSERT( t.contains( v1 ));
+ CPPUNIT_ASSERT( t.contains( v2.nKey ));
+ CPPUNIT_ASSERT( t.contains( v3 ));
+ CPPUNIT_ASSERT( t.contains( v4.nKey ));
+ CPPUNIT_ASSERT( t.contains( v5.nKey ));
+
+ // contains
+ CPPUNIT_ASSERT( t.contains( 10, less<value_type>() ));
+ CPPUNIT_ASSERT( !t.contains( wrapped_int(11), wrapped_less<value_type>() ));
+ CPPUNIT_ASSERT( t.contains( v1, less<value_type>() ));
+ CPPUNIT_ASSERT( t.contains( wrapped_int(v2.nKey), wrapped_less<value_type>() ));
+ CPPUNIT_ASSERT( t.contains( v3, less<value_type>() ));
+ CPPUNIT_ASSERT( t.contains( v4.nKey, less<value_type>() ));
+ CPPUNIT_ASSERT( t.contains( v5.nKey, less<value_type>() ));