MCPcopy Create free account
hub / github.com/antmachineintelligence/mtgbmcode / BOOST_AUTO_TEST_CASE

Function BOOST_AUTO_TEST_CASE

compute/test/test_replace.cpp:27–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25namespace bc = boost::compute;
26
27BOOST_AUTO_TEST_CASE(replace_int)
28{
29 bc::vector<int> vector(5, context);
30 bc::iota(vector.begin(), vector.end(), 0, queue);
31 CHECK_RANGE_EQUAL(int, 5, vector, (0, 1, 2, 3, 4));
32
33 bc::replace(vector.begin(), vector.end(), 2, 6, queue);
34 CHECK_RANGE_EQUAL(int, 5, vector, (0, 1, 6, 3, 4));
35}
36
37BOOST_AUTO_TEST_CASE(replace_copy_int)
38{

Callers

nothing calls this directly

Calls 5

iotaFunction · 0.85
replaceFunction · 0.85
replace_copyFunction · 0.85
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected