本文整理汇总了C#中Constant.getErrorMessage方法的典型用法代码示例。如果您正苦于以下问题:C# Constant.getErrorMessage方法的具体用法?C# Constant.getErrorMessage怎么用?C# Constant.getErrorMessage使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Constant
的用法示例。
在下文中一共展示了Constant.getErrorMessage方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: runTest
//.........这里部分代码省略.........
exp[testId] = e;
reg = false;
syn = e.checkSyntax();
if (syn == reg)
testResult = true;
mXparser.consolePrint(syn + " reg ... " + reg + " --> ");
break;
case 84:
expStr = "difb(1,2,3,4)";
mXparser.consolePrint(expStr + " ...... ");
e = new Expression(expStr);
exp[testId] = e;
reg = false;
syn = e.checkSyntax();
if (syn == reg)
testResult = true;
mXparser.consolePrint(syn + " reg ... " + reg + " --> ");
break;
case 85:
expStr = "difb(1,2)";
mXparser.consolePrint(expStr + " ...... ");
e = new Expression(expStr);
exp[testId] = e;
reg = false;
syn = e.checkSyntax();
if (syn == reg)
testResult = true;
mXparser.consolePrint(syn + " reg ... " + reg + " --> ");
break;
case 86:
expStr = "f()=x+y";
mXparser.consolePrint(expStr + " ...... ");
f = new Function(expStr);
msg = f.getErrorMessage();
e = new Expression("f", f);
exp[testId] = e;
reg = false;
syn = e.checkSyntax();
if (msg.IndexOf("pattern not mathes") >= 0)
testResult = true;
mXparser.consolePrint(syn + " reg ... " + reg + " --> " + " -----> " + msg);
break;
case 87:
expStr = "f(1,x,y)=x+y";
mXparser.consolePrint(expStr + " ...... ");
f = new Function(expStr);
msg = f.getErrorMessage();
e = new Expression("f", f);
exp[testId] = e;
reg = false;
syn = e.checkSyntax();
if (msg.IndexOf("pattern not mathes") >= 0)
testResult = true;
mXparser.consolePrint(syn + " reg ... " + reg + " --> " + " -----> " + msg);
break;
case 88:
expStr = "f(1)=x+y";
mXparser.consolePrint(expStr + " ...... ");
f = new Function(expStr);
msg = f.getErrorMessage();
e = new Expression("f", f);
exp[testId] = e;
reg = false;
syn = e.checkSyntax();
if (msg.IndexOf("pattern not mathes") >= 0)
testResult = true;