26 #ifndef MU_PARSER_TEST_H 27 #define MU_PARSER_TEST_H 99 return a_afArg[a_iArgc-1];
108 for (
int i=0; i<a_iArgc; ++i) fRes += a_afArg[i];
114 return (
value_type)(1+(v*std::rand()/(RAND_MAX+1.0)));
119 return (
value_type)( 1 + (1000.0f * std::rand() / (RAND_MAX + 1.0) ) );
150 return val + v2 + v3;
172 int TestExpression();
179 int TestIfThenElse();
192 void AddTest(testfun_type
a_pFun);
195 int EqnTest(
const string_type& a_str,
double a_fRes,
bool a_fPass);
201 int ThrowTest(
const string_type& a_str,
int a_iErrc,
bool a_bFail =
true);
204 int EqnTestInt(
const string_type& a_str,
double a_fRes,
bool a_fPass);
207 int EqnTestBulk(
const string_type& a_str,
double a_fRes[4],
bool a_fPass);