Lumiera  0.pre.03
»edit your freedom«
format-cout-test.cpp File Reference

Go to the source code of this file.

Description

unit test FormatCOUT_test

Definition in file format-cout-test.cpp.

#include "lib/test/run.hpp"
#include "lib/p.hpp"
#include "lib/diff/gen-node.hpp"
#include "lib/meta/util.hpp"
#include "lib/meta/trait.hpp"
#include "lib/format-cout.hpp"
#include <string>

Classes

class  FormatCOUT_test
 
class  Reticent
 opaque class without string conversion More...
 

Typedefs

template<typename T >
using BasicallyCString = std::is_convertible< T, const char * >
 
template<typename T >
using BasicallyString = is_basically< T, string >
 

Macros

#define ANALYSE(_TYPE_)
 
#define SHOW_CHECK(_EXPR_)   cout << STRINGIFY(_EXPR_) << "\t : " << (_EXPR_::value? "Yes":"No") << endl;
 

Functions

 LAUNCHER (FormatCOUT_test, "unit common")
 
void showTraits ()
 

Namespaces

Macro Definition Documentation

◆ ANALYSE

#define ANALYSE (   _TYPE_)
Value:
cout << "Type: " STRINGIFY(_TYPE_) " ......"<<endl; \
SHOW_CHECK (is_StringLike<_TYPE_>); \
SHOW_CHECK (BasicallyString<_TYPE_>); \
SHOW_CHECK (BasicallyCString<_TYPE_>); \
SHOW_CHECK (std::is_arithmetic<_TYPE_>); \
SHOW_CHECK (can_lexical2string<_TYPE_>); \
SHOW_CHECK (can_convertToString<_TYPE_>); \
SHOW_CHECK (use_StringConversion4Stream<_TYPE_>);
#define STRINGIFY(TOKEN)
this macro wraps its parameter into a cstring literal
Definition: util.hpp:486

Definition at line 71 of file format-cout-test.cpp.