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

Function BOOST_AUTO_TEST_CASE

compute/test/test_transform.cpp:29–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27namespace compute = boost::compute;
28
29BOOST_AUTO_TEST_CASE(transform_int_abs)
30{
31 int data[] = { 1, -2, -3, -4, 5 };
32 bc::vector<int> vector(data, data + 5, queue);
33 CHECK_RANGE_EQUAL(int, 5, vector, (1, -2, -3, -4, 5));
34
35 bc::transform(vector.begin(),
36 vector.end(),
37 vector.begin(),
38 bc::abs<int>(),
39 queue);
40 CHECK_RANGE_EQUAL(int, 5, vector, (1, 2, 3, 4, 5));
41}
42
43BOOST_AUTO_TEST_CASE(transform_float_sqrt)
44{

Callers 1

test_transform.cppFile · 0.70

Calls 4

transformFunction · 0.85
beginMethod · 0.45
endMethod · 0.45
finishMethod · 0.45

Tested by

no test coverage detected