]> git.donarmstrong.com Git - lilypond.git/blob - flower/include/yaffut-parameters.hh
Merge branch 'master' of git+ssh://jneem@git.sv.gnu.org/srv/git/lilypond
[lilypond.git] / flower / include / yaffut-parameters.hh
1 #ifndef __YAFFUT_PARAMETERS_H__
2 #define __YAFFUT_PARAMETERS_H__
3
4 #include "yaffut.hh"
5
6 namespace yaffut {
7 template <typename Suite, typename ParameterOne, typename Case>
8 struct TestOne: public ITest, public Suite
9 {
10   ParameterOne const parameter_one_;
11   //static Registrator<Suite, Case> s_Registrator;
12   TestOne(ParameterOne p)
13   : Suite(p)
14   , parameter_one_ (p)
15   {
16     Registrator<Suite, Case>* r = &Test<Suite, Case>::s_Registrator;
17     r = 0;
18   }
19 };
20
21 #define TEST_STRING(Suite, Case, String)\
22   namespace { \
23       struct Case: public yaffut::TestOne<Suite, std::string, Case>{ Case(); }; \
24   } \
25   template struct yaffut::TestOne<Suite, std::string, Case>; Case::Case() \
26     : yaffut::TestOne<Suite, std::string, Case> (String)
27
28 }
29
30 #endif // __YAFFUT_PARAMETERS_H__