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

Function BOOST_AUTO_TEST_CASE

test/test_stack.cpp:20–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18namespace bc = boost::compute;
19
20BOOST_AUTO_TEST_CASE(size)
21{
22 bc::stack<int> stack;
23 BOOST_CHECK_EQUAL(stack.size(), size_t(0));
24
25 stack.push(1);
26 stack.push(2);
27 stack.push(3);
28 BOOST_CHECK_EQUAL(stack.size(), size_t(3));
29}
30
31BOOST_AUTO_TEST_CASE(push_and_pop)
32{

Callers

nothing calls this directly

Calls 4

pushMethod · 0.80
topMethod · 0.80
popMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected