24#include <boost/lexical_cast.hpp>
39 using boost::lexical_cast;
55 return [&](
uint candidate)
57 return string::npos != description.find( lexical_cast<string> (candidate));
88 for (
int i=0; i<10; ++i)
93 cout <<
"removed " << elems_to_remove <<
" ---> ";
void test_remove(string elems_to_remove)
Test runner and basic definitions for tests.
function< bool(uint)> select_match(string description)
void show(IntSet const &coll)
bool remove_if(SET &set, FUN test)
remove all elements fulfilling a given predicate from a (sorted) set.
string join(COLL &&coll, string const &delim=", ")
enumerate a collection's contents, separated by delimiter.
disable_if< can_IterForEach< Container >, FUN > for_each(Container const &coll, FUN doIt)
operate on all elements of a STL container.
Simplistic test class runner.
#define LAUNCHER(_TEST_CLASS_, _GROUPS_)
Perform operations "for each element" of a collection.