X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=flower%2Finclude%2Fyaffut-parameters.hh;h=57429e64baa362c380a7eda4c3e10a75cc71654a;hb=52c47ff08943021305e5d40bf5a4963e3e520af8;hp=9a569f903ca45a7ac73d5de938b196e38ea6d015;hpb=f9214bac21e9926dc3248416f58190c98c4167a9;p=lilypond.git diff --git a/flower/include/yaffut-parameters.hh b/flower/include/yaffut-parameters.hh index 9a569f903c..57429e64ba 100644 --- a/flower/include/yaffut-parameters.hh +++ b/flower/include/yaffut-parameters.hh @@ -3,28 +3,17 @@ #include "yaffut.hh" -namespace yaffut { -template -struct TestOne: public ITest, public Suite -{ - ParameterOne const parameter_one_; - //static Registrator s_Registrator; - TestOne(ParameterOne p) - : Suite(p) - , parameter_one_ (p) - { - Registrator* r = &Test::s_Registrator; - r = 0; - } -}; - -#define TEST_STRING(Suite, Case, String)\ +#define TEST_PARAMETER(Suite, Case, Type, value) \ namespace { \ - struct Case: public yaffut::TestOne{ Case(); }; \ + struct Case: public yaffut::Test{ \ + Type parameter_one_; \ + Case (); \ + }; \ } \ - template struct yaffut::TestOne; Case::Case() \ - : yaffut::TestOne (String) +template struct yaffut::Test; Case::Case () \ + : Suite (value), parameter_one_ (value) -} +#define TEST_STRING(Suite, Case, String) \ + TEST_PARAMETER(Suite, Case, std::string, String) #endif // __YAFFUT_PARAMETERS_H__