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

Function BOOST_AUTO_TEST_CASE

test/test_invoke.cpp:24–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22namespace compute = boost::compute;
23
24BOOST_AUTO_TEST_CASE(invoke_builtin)
25{
26 BOOST_CHECK_EQUAL(compute::invoke(compute::abs<int>(), queue, -3), 3);
27 BOOST_CHECK_CLOSE(compute::invoke(compute::pow<float>(), queue, 2.f, 8.f), 256.f, 1e-4);
28}
29
30BOOST_AUTO_TEST_CASE(invoke_function)
31{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected