| 27 | #include "context_setup.hpp" |
| 28 | |
| 29 | BOOST_AUTO_TEST_CASE(value_type) |
| 30 | { |
| 31 | using boost::compute::float4_; |
| 32 | |
| 33 | BOOST_STATIC_ASSERT(( |
| 34 | boost::is_same< |
| 35 | boost::compute::transform_iterator< |
| 36 | boost::compute::buffer_iterator<float>, |
| 37 | boost::compute::sqrt<float> |
| 38 | >::value_type, |
| 39 | float |
| 40 | >::value |
| 41 | )); |
| 42 | BOOST_STATIC_ASSERT(( |
| 43 | boost::is_same< |
| 44 | boost::compute::transform_iterator< |
| 45 | boost::compute::buffer_iterator<float4_>, |
| 46 | boost::compute::length<float4_> |
| 47 | >::value_type, |
| 48 | float |
| 49 | >::value |
| 50 | )); |
| 51 | } |
| 52 | |
| 53 | BOOST_AUTO_TEST_CASE(base_type) |
| 54 | { |
nothing calls this directly
no test coverage detected