]> git.donarmstrong.com Git - lilypond.git/blob - flower/include/yaffut-parameters.hh
lilypond-manuals.css: edit color scheme and some spacing
[lilypond.git] / flower / include / yaffut-parameters.hh
1 #ifndef __YAFFUT_PARAMETERS_H__
2 #define __YAFFUT_PARAMETERS_H__
3
4 #include "yaffut.hh"
5
6 #define TEST_PARAMETER(Suite, Case, Type, value) \
7   namespace { \
8     struct Case: public yaffut::Test<Suite, Case>{ \
9         Type parameter_one_; \
10         Case (); \
11     }; \
12   } \
13 template struct yaffut::Test<Suite, Case>; Case::Case () \
14   : Suite (value), parameter_one_ (value)
15
16 #define TEST_STRING(Suite, Case, String) \
17   TEST_PARAMETER(Suite, Case, std::string, String)
18
19 #endif // __YAFFUT_PARAMETERS_H__