26#include <boost/lexical_cast.hpp>
39using boost::lexical_cast;
46 typedef std::vector<uint>
VecI;
57 numbers.reserve(count);
59 numbers.push_back(count--);
82 uint NUM_ELMS = firstVal (arg, 20);
83 VecI container = someNumberz (NUM_ELMS);
84 RangeI iterator(container.begin(), container.end());
101 CHECK (
first(col) == theFirst);
102 CHECK (
last(col) == theLast);
110 uint expectedMax = lim;
111 uint expectedMin = 1;
113 CHECK (
max (col) == expectedMax);
114 CHECK (
min (col) == expectedMin);
118 using Val = COL::value_type;
120 CHECK (
max (empty) == std::numeric_limits<Val>::min());
121 CHECK (
min (empty) == std::numeric_limits<Val>::max());
Accessing a STL element range through a Lumiera forward iterator, An instance of this iterator adapte...
void verify_typeDetectors()
void verify_Min_Max(COL const &col, uint lim)
virtual void run(Arg arg)
void verify_accessFirstLast(COL const &col, uint lim)
Helper template(s) for creating Lumiera Forward Iterators.
Test runner and basic definitions for tests.
VecI someNumberz(uint count)
lib::RangeIter< VecI::iterator > RangeI
auto first(COLL const &coll)
access the first element of a STL-like container.
auto last(COLL const &coll)
access the last element of a STL-like container.
Simplistic test class runner.
#define LAUNCHER(_TEST_CLASS_, _GROUPS_)
Helpers for type detection, type rewriting and metaprogramming.
Some small helpers and convenience shortcuts to ease working with collections and sequences (given by...