Lines Matching refs:array
51 int array[] = {1,2,3}; in find_test() local
52 BOOST_TEST(boost::phoenix::find(arg1,2)(array) == array + 1); in find_test()
54 std::set<int> s(array, array + 3); in find_test()
64 BOOST_PHOENIX_HASH_NAMESPACE::hash_set<int> hs(array, array + 3); in find_test()
79 int array[] = {1,2,3}; in find_if_test() local
80 BOOST_TEST(boost::phoenix::find_if(arg1, even())(array) == array + 1); in find_if_test()
88 int array[] = {1,2,3,1,2,3,1}; in find_end_test() local
90 BOOST_TEST(boost::phoenix::find_end(arg1, arg2)(array, pattern) == array + 3); in find_end_test()
92 …BOOST_TEST(boost::phoenix::find_end(arg1, arg2, mod_2_comparison())(array, pattern2) == array + 3); in find_end_test()
100 int array[] = {1,2,3}; in find_first_of_test() local
102 BOOST_TEST(boost::phoenix::find_first_of(arg1, arg2)(array, search_for) == array + 1); in find_first_of_test()
105 …ST(boost::phoenix::find_first_of(arg1, arg2, mod_2_comparison())(array, search_for2) == array + 1); in find_first_of_test()
112 int array[] = {0,1,3,4,4}; in adjacent_find_test() local
113 BOOST_TEST(boost::phoenix::adjacent_find(arg1)(array) == array + 3); in adjacent_find_test()
114 BOOST_TEST(boost::phoenix::adjacent_find(arg1, mod_2_comparison())(array) == array + 1); in adjacent_find_test()
121 int array[] = {1,1,0,1,1}; in count_test() local
122 BOOST_TEST(boost::phoenix::count(arg1, 1)(array) == 4); in count_test()
129 int array[] = {1,2,3,4,5}; in count_if_test() local
130 BOOST_TEST(boost::phoenix::count_if(arg1, even())(array) == 2); in count_if_test()
137 int array[] = {1,1,0,1,1}; in distance_test() local
138 BOOST_TEST(boost::phoenix::distance(arg1)(array) == 5); in distance_test()
146 int array[] = {1,2,3,4,5}; in mismatch_test() local
150 boost::phoenix::mismatch(arg1, arg2)(array, search) == in mismatch_test()
151 std::make_pair(array + 2, search + 2)); in mismatch_test()
154 boost::phoenix::mismatch(arg1, arg2, mod_2_comparison())(array, search2) in mismatch_test()
155 == std::make_pair(array + 3, search2 + 3)); in mismatch_test()
164 int array[] = {1,2,3}; in equal_test() local
168 boost::phoenix::equal(arg1, arg2)(array, array2)); in equal_test()
170 !boost::phoenix::equal(arg1, arg2)(array, array3)); in equal_test()
173 boost::phoenix::equal(arg1, arg2, mod_2_comparison())(array, array2)); in equal_test()
175 !boost::phoenix::equal(arg1, arg2, mod_2_comparison())(array, array3)); in equal_test()
183 int array[] = {1,2,3,1,2,3}; in search_test() local
186 boost::phoenix::search(arg1, arg2)(array, pattern) == array + 1); in search_test()
189 boost::phoenix::search(arg1, arg2, mod_2_comparison())(array, pattern2) == array + 2); in search_test()
196 int array[] = {1,2,3}; in lower_bound_test() local
197 const std::set<int> test_set(array, array + 3); in lower_bound_test()
198 BOOST_TEST(boost::phoenix::lower_bound(arg1, 2)(array) == array + 1); in lower_bound_test()
213 int array[] = {1,2,3}; in upper_bound_test() local
214 const std::set<int> test_set(array, array + 3); in upper_bound_test()
215 BOOST_TEST(upper_bound(arg1, 2)(array) == array + 2); in upper_bound_test()
230 int array[] = {1,2,2,3}; in equal_range_test() local
231 const std::set<int> test_set(array, array + 4); in equal_range_test()
232 BOOST_TEST(boost::phoenix::equal_range(arg1, 2)(array).first == in equal_range_test()
233 array + 1); in equal_range_test()
234 BOOST_TEST(boost::phoenix::equal_range(arg1, 2)(array).second == in equal_range_test()
235 array + 3); in equal_range_test()
260 int array[] = {1,2,3}; in binary_search_test() local
261 BOOST_TEST(boost::phoenix::binary_search(arg1, 2)(array)); in binary_search_test()
262 BOOST_TEST(!boost::phoenix::binary_search(arg1, 4)(array)); in binary_search_test()