MCPcopy Create free account
hub / github.com/boostorg/compute / CHECK_RANGE_EQUAL

Function CHECK_RANGE_EQUAL

test/test_counting_iterator.cpp:77–98  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

75 queue
76 );
77 CHECK_RANGE_EQUAL(
78 int, 10, vector,
79 (1, 2, 3, 4, 5, 6, 7, 8, 9, 10)
80 );
81}
82
83BOOST_AUTO_TEST_CASE(iota_with_copy_doctest)
84{
85//! [iota_with_copy]
86using boost::compute::make_counting_iterator;
87
88boost::compute::vector<int> result(5, context);
89
90boost::compute::copy(
91 make_counting_iterator(1), make_counting_iterator(6), result.begin(), queue
92);
93
94// result == { 1, 2, 3, 4, 5 }
95//! [iota_with_copy]
96
97 CHECK_RANGE_EQUAL(int, 5, result, (1, 2, 3, 4, 5));
98}
99
100BOOST_AUTO_TEST_SUITE_END()

Callers

nothing calls this directly

Calls 3

copyFunction · 0.85
make_counting_iteratorFunction · 0.85
beginMethod · 0.45

Tested by

no test coverage detected