You are here: Symbol Reference > MtxParseExpr Namespace > Classes > TMtxExpression Class > public > Test Method > TMtxExpression.Test Method (string, double, boolean)
MtxVec VCL
ContentsIndex
PreviousUpNext
TMtxExpression.Test Method (string, double, boolean)

Specifies a single expression, which must match ResultValue, underwise an exception is raised.

Pascal
procedure Test(const anExpr: string; ResultValue: double; AllowNanInf: boolean = false); overload;

Test "+" operator 

 

procedure TestAddOperator(aParser: TMtxExpression); begin aParser.Test('1+2',3); //no exception will be raised, if result is a match end;
Examples on GitHub
Copyright (c) 1999-2024 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!