#include "2CL.hpp"
|
|
#include <assert.h>
|
|
|
|
struct test_001{
|
|
test_001()
|
|
{
|
|
auto fn = cl::compose(
|
|
[](int a)->int{return a+2;},
|
|
[](int a)->int{return a*2;}
|
|
);
|
|
assert(fn(1)==6);
|
|
}
|
|
};
|
|
|
|
test_001 run_001;
|