This file contains the implementation of parser test cases.
More...
#include "muParserTest.h"
#include <cstdio>
#include <cmath>
#include <iostream>
#include <limits>
Go to the source code of this file.
|
| mu |
| Namespace for mathematical applications.
|
|
| mu::Test |
| Namespace for test cases.
|
|
|
#define | PARSER_CONST_PI 3.141592653589793238462643 |
|
#define | PARSER_CONST_E 2.718281828459045235360287 |
|
#define | EQN_TEST_BULK(EXPR, R1, R2, R3, R4, PASS) |
|
#define | PARSER_THROWCHECK(DOMAIN, FAIL, EXPR, ARG) |
|
This file contains the implementation of parser test cases.
Definition in file muParserTest.cpp.
#define EQN_TEST_BULK |
( |
|
EXPR, |
|
|
|
R1, |
|
|
|
R2, |
|
|
|
R3, |
|
|
|
R4, |
|
|
|
PASS |
|
) |
| |
Value:{ \
double res[] = { R1, R2, R3, R4 }; \
iStat += EqnTestBulk(
_T(EXPR), res, (PASS)); \
}
#define _T(x)
Activate this option in order to compile with OpenMP support.
#define PARSER_THROWCHECK |
( |
|
DOMAIN, |
|
|
|
FAIL, |
|
|
|
EXPR, |
|
|
|
ARG |
|
) |
| |
Value:iErr = 0; \
ParserTester::c_iCount++; \
try \
{ \
p.Define##DOMAIN(EXPR, ARG); \
} \
catch(Parser::exception_type&) \
{ \
iErr = (FAIL==false) ? 0 : 1; \
} \
iStat += iErr;