26 #ifndef MU_PARSER_TEST_H
27 #define MU_PARSER_TEST_H
94 return a_afArg[a_iArgc-1];
103 for (
int i=0; i<a_iArgc; ++i) fRes += a_afArg[i];
109 return (
value_type)(1+(v*std::rand()/(RAND_MAX+1.0)));
114 return (
value_type)( 1 + (1000.0f * std::rand() / (RAND_MAX + 1.0) ) );
145 return val + v2 + v3;
168 int TestExpression();
185 std::vector<testfun_type> m_vTestFun;
189 int EqnTest(
const string_type& a_str,
double a_fRes,
bool a_fPass);
190 int ThrowTest(
const string_type& a_str,
int a_iErrc,
bool a_bFail =
true);
193 int EqnTestInt(
const string_type& a_str,
double a_fRes,
bool a_fPass);
Definition of a parser using integer value.
Definition of the standard floating point parser.
std::basic_stringstream< char_type, std::char_traits< char_type >, std::allocator< char_type > > stringstream_type
Typedef for easily using stringstream that respect the parser stringtype.
Definition: muParserDef.h:245
const muChar_t muFun0_t a_pFun
Definition: muParserDLL.h:84
MUP_BASETYPE value_type
The numeric datatype used by the parser.
Definition: muParserDef.h:222
Test cases for unit testing.
Definition: muParserTest.h:49
Namespace for mathematical applications.
Definition: muParser.cpp:47
string_type::value_type char_type
The character type used by the parser.
Definition: muParserDef.h:240
MUP_STRING_TYPE string_type
The stringtype used by the parser.
Definition: muParserDef.h:228
#define _T
Definition: muParserDef.h:62
ParserError exception_type
Type of the error class.
Definition: muParserBase.h:92
int(ParserTester::* testfun_type)()
Definition: muParserTest.h:179