Lines Matching refs:sample
54 bool test_init_auto_ptr_array(ArrayT& arr, SampleRange& sample) in test_init_auto_ptr_array() argument
58 for (iter_t it = boost::begin(sample), last = boost::end(sample); it != last; ++it) { in test_init_auto_ptr_array()
62 return boost::distance(arr) == boost::distance(sample); in test_init_auto_ptr_array()
67 bool test_init_auto_ptr_list(ListT& lst, SampleRange& sample) in test_init_auto_ptr_list() argument
72 for (iter_t it = boost::begin(sample), last = boost::end(sample); it != last; ++it) { in test_init_auto_ptr_list()
76 return boost::distance(lst) == boost::distance(sample); in test_init_auto_ptr_list()
98 bool test_atl_map(AtlMapT& map, const MapT& sample) in test_atl_map() argument
105 result = result && (boost::distance(map) == boost::distance(sample)); in test_atl_map()
111 … result = result && brdm::test_find_key_and_mapped(sample, std::make_pair(it->m_key, it->m_value)); in test_atl_map()
116 for (siter_t it = boost::begin(sample), last = boost::end(sample); it != last; ++it) { in test_atl_map()
126 bool test_init_atl_multimap(MapT& map, const SampleMap& sample) in test_init_atl_multimap() argument
130 … for (iter_t it = boost::const_begin(sample), last = boost::const_end(sample); it != last; ++it) { in test_init_atl_multimap()
134 return boost::distance(map) == boost::distance(sample); in test_init_atl_multimap()
142 void test_CAtlArray(const Range& sample) in test_CAtlArray() argument
151 BOOST_CHECK( brdm::test_init_array(rng, sample) ); in test_CAtlArray()
158 void test_CAutoPtrArray(Range& sample) in test_CAutoPtrArray() argument
167 BOOST_CHECK( ::test_init_auto_ptr_array(rng, sample) ); in test_CAutoPtrArray()
174 void test_CInterfaceArray(const Range& sample) in test_CInterfaceArray() argument
183 BOOST_CHECK( brdm::test_init_array(rng, sample) ); in test_CInterfaceArray()
193 void test_CAtlList(const Range& sample) in test_CAtlList() argument
202 BOOST_CHECK( brdm::test_init_list(rng, sample) ); in test_CAtlList()
209 void test_CAutoPtrList(Range& sample) in test_CAutoPtrList() argument
218 BOOST_CHECK( ::test_init_auto_ptr_list(rng, sample) ); in test_CAutoPtrList()
225 void test_CHeapPtrList(const Range& sample) in test_CHeapPtrList() argument
234 BOOST_CHECK( ::test_init_auto_ptr_list(rng, sample) ); in test_CHeapPtrList()
241 void test_CInterfaceList(const Range& sample) in test_CInterfaceList() argument
250 BOOST_CHECK( brdm::test_init_list(rng, sample) ); in test_CInterfaceList()
260 void test_CSimpleStringT(const Range& sample) in test_CSimpleStringT() argument
275 BOOST_CHECK( brdm::test_init_string(rng, sample) ); in test_CSimpleStringT()
282 void test_CFixedStringT(const Range& sample) in test_CFixedStringT() argument
296 BOOST_CHECK( brdm::test_init_string(rng, sample) ); in test_CFixedStringT()
303 void test_CStringT(const Range& sample) in test_CStringT() argument
316 BOOST_CHECK( brdm::test_init_string(rng, sample) ); in test_CStringT()
323 void test_CStaticString(const Range& sample) in test_CStaticString() argument
347 (void)sample; // unused in test_CStaticString()
355 void test_CComBSTR(const Range& sample) in test_CComBSTR() argument
366 (void)sample; // unused in test_CComBSTR()
374 void test_CSimpleArray(const Range& sample) in test_CSimpleArray() argument
383 BOOST_CHECK( brdm::test_init_array(rng, sample) ); in test_CSimpleArray()
390 void test_CSimpleMap(const Range& sample) in test_CSimpleMap() argument
405 (void)sample; // unused in test_CSimpleMap()
410 void test_CSimpleValArray(const Range& sample) in test_CSimpleValArray() argument
419 BOOST_CHECK( brdm::test_init_array(rng, sample) ); in test_CSimpleValArray()
429 void test_CAtlMap(const MapT& sample) in test_CAtlMap() argument
438 BOOST_CHECK( brdm::test_init_map(rng, sample) ); in test_CAtlMap()
439 BOOST_CHECK( ::test_atl_map(rng, sample) ); in test_CAtlMap()
444 void test_CRBTree(const MapT& sample) in test_CRBTree() argument
456 BOOST_CHECK( brdm::test_init_map(drng, sample) ); in test_CRBTree()
457 BOOST_CHECK( ::test_atl_map(rng, sample) ); in test_CRBTree()
462 void test_CRBMap(const MapT& sample) in test_CRBMap() argument
471 BOOST_CHECK( brdm::test_init_map(rng, sample) ); in test_CRBMap()
472 BOOST_CHECK( ::test_atl_map(rng, sample) ); in test_CRBMap()
477 void test_CRBMultiMap(const MapT& sample) in test_CRBMultiMap() argument
486 BOOST_CHECK( ::test_init_atl_multimap(rng, sample) ); in test_CRBMultiMap()
487 BOOST_CHECK( ::test_atl_map(rng, sample) ); in test_CRBMultiMap()
500 std::string sample("rebecca judy and mary whiteberry chat monchy"); in test_atl() local
502 ::test_CAtlArray(sample); in test_atl()
503 ::test_CAtlList(sample); in test_atl()
504 ::test_CSimpleStringT(sample); in test_atl()
505 ::test_CFixedStringT<44>(sample); in test_atl()
506 ::test_CStringT(sample); in test_atl()
507 ::test_CStaticString(sample); in test_atl()
509 ::test_CComBSTR(sample); in test_atl()
510 ::test_CSimpleArray(sample); in test_atl()
511 ::test_CSimpleMap(sample); in test_atl()
512 ::test_CSimpleValArray(sample); in test_atl()
517 std::wstring sample(L"rebecca judy and mary whiteberry chat monchy"); in test_atl() local
519 ::test_CAtlArray(sample); in test_atl()
520 ::test_CAtlList(sample); in test_atl()
521 ::test_CSimpleStringT(sample); in test_atl()
522 ::test_CFixedStringT<44>(sample); in test_atl()
523 ::test_CStringT(sample); in test_atl()
524 ::test_CStaticString(sample); in test_atl()
526 ::test_CComBSTR(sample); in test_atl()
527 ::test_CSimpleArray(sample); in test_atl()
528 ::test_CSimpleMap(sample); in test_atl()
529 ::test_CSimpleValArray(sample); in test_atl()
592 std::map<int, std::string> sample; { in test_atl() local
593 sample[0] = "hello"; in test_atl()
594 sample[1] = "range"; in test_atl()
595 sample[2] = "atl"; in test_atl()
596 sample[3] = "mfc"; in test_atl()
597 sample[4] = "collections"; in test_atl()
600 ::test_CAtlMap(sample); in test_atl()
601 ::test_CRBTree(sample); in test_atl()
602 ::test_CRBMap(sample); in test_atl()
603 ::test_CRBMultiMap(sample); in test_atl()