7 #define BOOST_TEST_DYN_LINK
8 #define BOOST_TEST_MODULE "Test module for simplifying for loops"
10 #include <boost/test/unit_test.hpp>
41 std::vector<int> vec(5,1);
44 BOOST_CHECK_EQUAL(value,1);
51 std::map<std::string,int> my_map;
58 BOOST_CHECK_EQUAL(value,1);
59 else if (key ==
"second")
60 BOOST_CHECK_EQUAL(value,2);
69 BOOST_AUTO_TEST_SUITE_END()
ForeachFixture()
common setup for each test case
#define boost_foreach
lowercase version of BOOST_FOREACH
#define foreach_container(VARS, COL)
boost_foreach version that allows to use std::map's, boost::tuple's, std::pair's internal variables ...
~ForeachFixture()
common tear-down for each test case
BOOST_AUTO_TEST_CASE(test_boost_foreach)
coolfluid3 header, included almost everywhere