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

Function BOOST_AUTO_TEST_CASE

test/test_partition_point.cpp:26–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24namespace bc = boost::compute;
25
26BOOST_AUTO_TEST_CASE(partition_point_int)
27{
28 int dataset[] = {1, 1, 5, 2, 4, -2, 0, -1, 0, -1};
29 bc::vector<bc::int_> vector(dataset, dataset + 10, queue);
30
31 bc::vector<bc::int_>::iterator iter =
32 bc::partition_point(vector.begin(), vector.begin() + 10,
33 bc::_1 > 0, queue);
34
35 BOOST_VERIFY(iter == vector.begin()+5);
36}
37
38BOOST_AUTO_TEST_SUITE_END()

Callers

nothing calls this directly

Calls 2

partition_pointFunction · 0.85
beginMethod · 0.45

Tested by

no test coverage detected