Home
last modified time | relevance | path

Searched refs:predicateCount (Results 1 – 6 of 6) sorted by relevance

/llvm-project-15.0.7/libcxx/test/std/algorithms/alg.nonmodifying/alg.adjacent.find/
H A Dranges.adjacent_find.pass.cpp109 int predicateCount = 0; in test() local
110 auto pred = [&](int, int) { ++predicateCount; return false; }; in test()
116 assert(predicateCount == 4); in test()
120 int predicateCount = 0; in test() local
121 auto pred = [&](int, int) { ++predicateCount; return false; }; in test()
127 assert(predicateCount == 4); in test()
134 int predicateCount = 0; in test() local
135 auto pred = [&](int i, int j) { ++predicateCount; return i == j; }; in test()
141 assert(predicateCount == 3); in test()
145 int predicateCount = 0; in test() local
[all …]
/llvm-project-15.0.7/libcxx/test/std/algorithms/alg.modifying.operations/alg.replace/
H A Dranges.replace_if.pass.cpp157 int predicateCount = 0; in test() local
158 auto pred = [&](int) { ++predicateCount; return false; }; in test()
164 assert(predicateCount == 5); in test()
168 int predicateCount = 0; in test() local
169 auto pred = [&](int) { ++predicateCount; return false; }; in test()
175 assert(predicateCount == 5); in test()
/llvm-project-15.0.7/libcxx/test/std/algorithms/alg.nonmodifying/alg.all_of/
H A Dranges.all_of.pass.cpp92 int predicateCount = 0; in test_iterators() local
94 auto pred = [&](int) { ++predicateCount; return true; }; in test_iterators()
98 assert(predicateCount == 4); in test_iterators()
102 int predicateCount = 0; in test_iterators() local
104 auto pred = [&](int) { ++predicateCount; return true; }; in test_iterators()
109 assert(predicateCount == 4); in test_iterators()
/llvm-project-15.0.7/libcxx/test/std/algorithms/alg.nonmodifying/alg.none_of/
H A Dranges.none_of.pass.cpp92 int predicateCount = 0; in test_iterators() local
94 auto pred = [&](int) { ++predicateCount; return false; }; in test_iterators()
98 assert(predicateCount == 4); in test_iterators()
102 int predicateCount = 0; in test_iterators() local
104 auto pred = [&](int) { ++predicateCount; return false; }; in test_iterators()
109 assert(predicateCount == 4); in test_iterators()
/llvm-project-15.0.7/libcxx/test/std/algorithms/alg.nonmodifying/alg.any_of/
H A Dranges.any_of.pass.cpp92 int predicateCount = 0; in test_iterators() local
94 auto pred = [&](int) { ++predicateCount; return false; }; in test_iterators()
98 assert(predicateCount == 4); in test_iterators()
102 int predicateCount = 0; in test_iterators() local
104 auto pred = [&](int) { ++predicateCount; return false; }; in test_iterators()
109 assert(predicateCount == 4); in test_iterators()
/llvm-project-15.0.7/libcxx/test/std/algorithms/alg.modifying.operations/alg.copy/
H A Dranges.copy_if.pass.cpp187 int predicateCount = 0; in test() local
189 auto pred = [&](int i) { ++predicateCount; return i != 0; }; in test()
195 assert(predicateCount == 5); in test()
199 int predicateCount = 0; in test() local
201 auto pred = [&](int i) { ++predicateCount; return i != 0; }; in test()
207 assert(predicateCount == 5); in test()