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

Function CHECK_RANGE_EQUAL

test/test_constant_iterator.cpp:70–94  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

68 queue
69 );
70 CHECK_RANGE_EQUAL(
71 int, 10, vector,
72 (42, 42, 42, 42, 42, 42, 42, 42, 42, 42)
73 );
74}
75
76BOOST_AUTO_TEST_CASE(fill_with_copy_doctest)
77{
78//! [fill_with_copy]
79using boost::compute::make_constant_iterator;
80
81boost::compute::vector<int> result(5, context);
82
83boost::compute::copy(
84 make_constant_iterator(42, 0),
85 make_constant_iterator(42, result.size()),
86 result.begin(),
87 queue
88);
89
90// result == { 42, 42, 42, 42, 42 }
91//! [fill_with_copy]
92
93 CHECK_RANGE_EQUAL(int, 5, result, (42, 42, 42, 42, 42));
94}
95
96BOOST_AUTO_TEST_SUITE_END()

Callers

nothing calls this directly

Calls 4

copyFunction · 0.85
make_constant_iteratorFunction · 0.85
sizeMethod · 0.45
beginMethod · 0.45

Tested by

no test coverage detected