Lumiera  0.pre.03
»edit your freedom«
util-foreach-test.cpp File Reference

Go to the source code of this file.

Description

unit test UtilForeach_test

Definition in file util-foreach-test.cpp.

#include "lib/test/run.hpp"
#include "lib/util-foreach.hpp"
#include "lib/iter-adapter.hpp"
#include <boost/lexical_cast.hpp>
#include <functional>
#include <iostream>
#include <vector>

Classes

struct  UtilForeach_test::Dummy
 
struct  UtilForeach_test::TestElm
 
class  UtilForeach_test
 

Macros

#define _NL_   cout << endl;
 
#define ANNOUNCE(_LABEL_)   cout << "---:" << STRINGIFY(_LABEL_) << endl;
 
#define SHOW_CONTAINER   for_each (coll, plainFunc); _NL_
 

Functions

VecI buildTestNumberz (uint count)
 
bool function1 (int i, int j)
 
bool function2 (int i, int j, int &k)
 
 LAUNCHER (UtilForeach_test, "unit common")
 
bool plainFunc (int i)
 

Variables

std::_Placeholder< 1 > _1
 
uint NUM_ELMS = 10
 

Namespaces