regtests: Fix a copy/paste bug in the #if ... partial evaluation code

git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3930 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Bart Van Assche
2011-11-17 10:36:03 +00:00
parent baf5c259bc
commit 20f64c4e7e

View File

@@ -166,8 +166,8 @@ function evaluate(stmnt, pattern, arg, op, result) {
while (match(stmnt, pattern, op) != 0)
{
result="error"
if (op[2] == "+") result = op[1] * op[3]
else if (op[2] == "-") result = op[1] / op[3]
if (op[2] == "+") result = op[1] + op[3]
else if (op[2] == "-") result = op[1] - op[3]
sub(pattern, result, stmnt)
}