| 25 | namespace bc = boost::compute; |
| 26 | |
| 27 | BOOST_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 | |
| 37 | BOOST_AUTO_TEST_CASE(replace_copy_int) |
| 38 | { |
nothing calls this directly
no test coverage detected