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

Function BOOST_AUTO_TEST_CASE

test/test_unique.cpp:26–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24namespace compute = boost::compute;
25
26BOOST_AUTO_TEST_CASE(unique_int)
27{
28 int data[] = {1, 6, 6, 4, 2, 2, 4};
29
30 compute::vector<int> input(data, data + 7, queue);
31
32 compute::vector<int>::iterator iter =
33 compute::unique(input.begin(), input.end(), queue);
34
35 BOOST_VERIFY(iter == input.begin() + 5);
36 CHECK_RANGE_EQUAL(int, 7, input, (1, 6, 4, 2, 4, 2, 4));
37}
38
39BOOST_AUTO_TEST_CASE(all_same_float)
40{

Callers

nothing calls this directly

Calls 10

uniqueFunction · 0.85
fillFunction · 0.85
copy_nFunction · 0.85
iotaFunction · 0.85
transformFunction · 0.85
none_ofFunction · 0.85
BOOST_COMPUTE_FUNCTIONFunction · 0.70
beginMethod · 0.45
endMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected