Home
last modified time | relevance | path

Searched refs:expected_first (Results 1 – 13 of 13) sorted by relevance

/external/llvm-project/pstl/test/std/algorithms/alg.modifying.operations/
Dremove.pass.cpp29 … OutputIterator out_last, OutputIterator expected_first, OutputIterator expected_last, Size n, in operator ()()
36 OutputIterator out_first, OutputIterator out_last, OutputIterator expected_first, in operator ()()
45 … OutputIterator out_last, OutputIterator expected_first, OutputIterator expected_last, Size, in operator ()()
49 std::copy(first, last, expected_first); in operator ()()
53 OutputIterator i = remove(expected_first, expected_last, value); in operator ()()
55 …EXPECT_TRUE(std::distance(expected_first, i) == std::distance(out_first, k), "wrong return value f… in operator ()()
56 … EXPECT_EQ_N(expected_first, out_first, std::distance(expected_first, i), "wrong remove effect"); in operator ()()
67 … OutputIterator out_last, OutputIterator expected_first, OutputIterator expected_last, Size n, in operator ()()
74 OutputIterator out_first, OutputIterator out_last, OutputIterator expected_first, in operator ()()
83 … OutputIterator out_last, OutputIterator expected_first, OutputIterator expected_last, Size, in operator ()()
[all …]
Dcopy_move.pass.cpp30 … OutputIterator out_last, OutputIterator2 expected_first, OutputIterator2 expected_last, Size size, in operator ()()
38 OutputIterator out_first, OutputIterator out_last, OutputIterator2 expected_first, in operator ()()
48 …OutputIterator out_last, OutputIterator2 expected_first, OutputIterator2, Size size, Size n, T tra… in operator ()()
51 std::fill_n(expected_first, size, trash); in operator ()()
55 copy(first, last, expected_first); in operator ()()
59 EXPECT_EQ_N(expected_first, out_first, size, "wrong effect from copy"); in operator ()()
68 EXPECT_EQ_N(expected_first, out_first, size, "wrong effect from copy_n"); in operator ()()
82 … OutputIterator out_last, OutputIterator2 expected_first, OutputIterator2 expected_last, Size size, in operator ()()
90 OutputIterator out_first, OutputIterator out_last, OutputIterator2 expected_first, in operator ()()
99 …OutputIterator out_last, OutputIterator2 expected_first, OutputIterator2, Size size, Size, T trash) in operator ()()
[all …]
Dunique_copy_equal.pass.cpp29 … OutputIterator out_last, OutputIterator2 expected_first, OutputIterator2 expected_last, Size n, in operator ()()
38 OutputIterator out_first, OutputIterator out_last, OutputIterator2 expected_first, in operator ()()
48 … OutputIterator out_last, OutputIterator2 expected_first, OutputIterator2, Size n, Predicate pred, in operator ()()
52 std::fill_n(expected_first, n, trash); in operator ()()
56 auto i = unique_copy(first, last, expected_first); in operator ()()
58 EXPECT_EQ_N(expected_first, out_first, n, "wrong unique_copy effect"); in operator ()()
66 std::fill_n(expected_first, n, trash); in operator ()()
69 i = unique_copy(first, last, expected_first, pred); in operator ()()
71 EXPECT_EQ_N(expected_first, out_first, n, "wrong unique_copy with predicate effect"); in operator ()()
Dreplace_copy.pass.cpp29 … OutputIterator out_last, OutputIterator2 expected_first, OutputIterator2, Size n, Predicate pred, in operator ()()
33 std::fill_n(expected_first, n, trash); in operator ()()
36 auto i = std::replace_copy(first, last, expected_first, old_value, new_value); in operator ()()
38 EXPECT_EQ_N(expected_first, out_first, n, "wrong replace_copy effect"); in operator ()()
42 std::fill_n(expected_first, n, trash); in operator ()()
45 i = replace_copy_if(first, last, expected_first, pred, new_value); in operator ()()
47 EXPECT_EQ_N(expected_first, out_first, n, "wrong replace_copy_if effect"); in operator ()()
Dremove_copy.pass.cpp27 … OutputIterator out_last, OutputIterator2 expected_first, OutputIterator2, Size n, const T& value, in operator ()()
31 std::fill_n(expected_first, n, trash); in operator ()()
35 auto i = std::remove_copy(first, last, expected_first, value); in operator ()()
38 EXPECT_EQ_N(expected_first, out_first, n, "wrong remove_copy effect"); in operator ()()
/external/llvm-project/pstl/test/std/algorithms/alg.modifying.operations/alg.copy/
Dcopy_if.pass.cpp29 … OutputIterator out_last, OutputIterator2 expected_first, OutputIterator2 expected_last, Size n, in operator ()()
37 OutputIterator out_first, OutputIterator out_last, OutputIterator2 expected_first, in operator ()()
47 … OutputIterator out_last, OutputIterator2 expected_first, OutputIterator2, Size n, Predicate pred, in operator ()()
51 std::fill_n(expected_first, n, trash); in operator ()()
55 auto i = copy_if(first, last, expected_first, pred); in operator ()()
57 EXPECT_EQ_N(expected_first, out_first, n, "wrong copy_if effect"); in operator ()()
65 std::fill_n(expected_first, n, trash); in operator ()()
68 i = remove_copy_if(first, last, expected_first, [=](const T& x) { return !pred(x); }); in operator ()()
70 EXPECT_EQ_N(expected_first, out_first, n, "wrong remove_copy_if effect"); in operator ()()
/external/llvm-project/pstl/test/std/numerics/numeric.ops/
Dscan.pass.cpp91 check_and_reset(Iterator expected_first, Iterator out_first, Size n, T trash) in check_and_reset() argument
93 EXPECT_EQ_N(expected_first, out_first, n, in check_and_reset()
103 Iterator3 expected_first, Iterator3, Size n, T init, T trash) in operator ()()
107 auto orr1 = inclusive ? inclusive_scan_serial(in_first, in_last, expected_first) in operator ()()
108 : exclusive_scan_serial(in_first, in_last, expected_first, init); in operator ()()
115 check_and_reset(expected_first, out_first, n, trash); in operator ()()
142 Iterator3 expected_first, Iterator3, Size n, T init, BinaryOp binary_op, T trash) in operator ()()
146 … auto orr1 = inclusive ? inclusive_scan_serial(in_first, in_last, expected_first, binary_op, init) in operator ()()
147 … : exclusive_scan_serial(in_first, in_last, expected_first, init, binary_op); in operator ()()
153 check_and_reset(expected_first, out_first, n, trash); in operator ()()
Dtransform_scan.pass.cpp28 check_and_reset(Iterator expected_first, Iterator out_first, Size n, T trash) in check_and_reset() argument
30 EXPECT_EQ_N(expected_first, out_first, n, in check_and_reset()
42 …OutputIterator out_last, OutputIterator expected_first, OutputIterator, Size n, UnaryOp unary_op, … in operator ()()
49 …? transform_inclusive_scan(std::execution::seq, first, last, expected_first, binary_op, unary_op, … in operator ()()
50 …: transform_exclusive_scan(std::execution::seq, first, last, expected_first, init, binary_op, unar… in operator ()()
54 check_and_reset(expected_first, out_first, n, trash); in operator ()()
59 …orr1 = transform_inclusive_scan(std::execution::seq, first, last, expected_first, binary_op, unary… in operator ()()
62 check_and_reset(expected_first, out_first, n, trash); in operator ()()
/external/llvm-project/pstl/test/std/algorithms/alg.nonmodifying/
Dfor_each.pass.cpp47 …operator()(Policy&& exec, Iterator first, Iterator last, Iterator expected_first, Iterator expecte… in operator ()()
52 std::for_each(expected_first, expected_last, Flip<T>(1)); in operator ()()
54 EXPECT_EQ_N(expected_first, first, n, "wrong effect from for_each"); in operator ()()
57 std::for_each_n(std::execution::seq, expected_first, n, Flip<T>(1)); in operator ()()
59 EXPECT_EQ_N(expected_first, first, n, "wrong effect from for_each_n"); in operator ()()
/external/llvm-project/pstl/test/std/algorithms/alg.sorting/
Dsort.pass.cpp164 …)(Policy&& exec, OutputIterator tmp_first, OutputIterator tmp_last, OutputIterator2 expected_first, in operator ()()
168 copy_n(first, n, expected_first); in operator ()()
171 std::stable_sort(expected_first + 1, expected_last - 1, compare); in operator ()()
173 std::sort(expected_first + 1, expected_last - 1, compare); in operator ()()
180 for (size_t i = 0; i < n; ++i, ++expected_first, ++tmp_first) in operator ()()
183 EXPECT_TRUE(Equal(*expected_first, *tmp_first), "bad sort"); in operator ()()
/external/llvm-project/pstl/test/support/
Dutils.h118 expect_equal(Iterator1 expected_first, Iterator2 actual_first, Size n, const char* file, int32_t li… in expect_equal() argument
122 for (Size k = 0; k < n && error_count < 10; ++k, ++expected_first, ++actual_first) in expect_equal()
124 if (!(*expected_first == *actual_first)) in expect_equal()
/external/tensorflow/tensorflow/core/framework/
Dtensor_test.cc424 const float expected_first = 0.01f; in TestReshapeImpl() local
426 EXPECT_EQ(shaped(coord), *reinterpret_cast<const Scalar*>(&expected_first)); in TestReshapeImpl()
/external/rust/crates/itertools/tests/
Dquick.rs712 let expected_first: Vec<usize> = (0..k).collect(); localVariable
722 assert_eq!(expected_first, curr_perm);