codetools: fixed exmaple

git-svn-id: trunk@22811 -
This commit is contained in:
mattias 2009-11-26 20:45:07 +00:00
parent 88d5b48c92
commit ca19910ffe

View File

@ -38,8 +38,8 @@ var
OldResult, NewResult: String; OldResult, NewResult: String;
begin begin
DebugLn(['Test Expression="',expr,'"']); DebugLn(['Test Expression="',expr,'"']);
OldResult:=e.Eval(Expr); OldResult:=e.EvalOld(Expr);
NewResult:=e.Eval2(Expr); NewResult:=e.Eval(Expr);
DebugLn(['Test eval2 OldResult="',OldResult,'" NewResult="',NewResult,'"']); DebugLn(['Test eval2 OldResult="',OldResult,'" NewResult="',NewResult,'"']);
if NewResult<>ExpectedResult then if NewResult<>ExpectedResult then
DebugLn(['FATAL: Expression="',expr,'" ExpectedResult="',ExpectedResult,'" <> NewResult="',NewResult,'"']); DebugLn(['FATAL: Expression="',expr,'" ExpectedResult="',ExpectedResult,'" <> NewResult="',NewResult,'"']);