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

Function BOOST_AUTO_TEST_CASE

test/test_pair.cpp:29–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27#include "context_setup.hpp"
28
29BOOST_AUTO_TEST_CASE(vector_pair_int_float)
30{
31 boost::compute::vector<std::pair<int, float> > vector(context);
32 vector.push_back(std::make_pair(1, 1.1f), queue);
33 vector.push_back(std::make_pair(2, 2.2f), queue);
34 vector.push_back(std::make_pair(3, 3.3f), queue);
35 BOOST_CHECK_EQUAL(vector.size(), size_t(3));
36 BOOST_CHECK(vector[0] == std::make_pair(1, 1.1f));
37 BOOST_CHECK(vector[1] == std::make_pair(2, 2.2f));
38 BOOST_CHECK(vector[2] == std::make_pair(3, 3.3f));
39}
40
41BOOST_AUTO_TEST_CASE(copy_pair_vector)
42{

Callers

nothing calls this directly

Calls 12

make_pairFunction · 0.85
copyFunction · 0.85
bug_in_struct_assignmentFunction · 0.85
fillFunction · 0.85
transformFunction · 0.85
findFunction · 0.85
make_transform_iteratorFunction · 0.85
push_backMethod · 0.80
sizeMethod · 0.45
beginMethod · 0.45
endMethod · 0.45
finishMethod · 0.45

Tested by

no test coverage detected