[Mathlib-commitlog] SF.net SVN: mathlib:[743] JMathLib/trunk/src/jmathlibtests/toolbox/general/ tes
Status: Beta
Brought to you by:
st_mueller
|
From: <st_...@us...> - 2009-01-24 09:13:39
|
Revision: 743
http://mathlib.svn.sourceforge.net/mathlib/?rev=743&view=rev
Author: st_mueller
Date: 2009-01-24 09:13:36 +0000 (Sat, 24 Jan 2009)
Log Message:
-----------
changed signature of evaluate(Token[] operands)
to
evaluate(Token[] operands, GlobalValues globals)
Modified Paths:
--------------
JMathLib/trunk/src/jmathlibtests/toolbox/general/testGlobal.java
Modified: JMathLib/trunk/src/jmathlibtests/toolbox/general/testGlobal.java
===================================================================
--- JMathLib/trunk/src/jmathlibtests/toolbox/general/testGlobal.java 2009-01-24 09:12:07 UTC (rev 742)
+++ JMathLib/trunk/src/jmathlibtests/toolbox/general/testGlobal.java 2009-01-24 09:13:36 UTC (rev 743)
@@ -1,3 +1,12 @@
+/*
+ * This file is part or JMathLib
+ *
+ * Check it out at http://www.jmathlib.de
+ *
+ * Author: Stefan Mueller (st...@he...)
+ * (c) 2008, 2009
+ */
+
package jmathlibtests.toolbox.general;
import jmathlib.core.interpreter.Interpreter;
@@ -61,7 +70,7 @@
//Expected an exception here
try {
doit = funcParser.parseFunction(b.toString());
- doit.evaluate(null);
+ doit.evaluate(null, ml.globals);
}
catch (MathLibException ex) {
exCaught = true;
@@ -81,7 +90,7 @@
FunctionParser funcParser = new FunctionParser();
Function doit = funcParser.parseFunction(b.toString());
assertNotNull(doit);
- ml.getFunctionManager().addFunctionLoader(new TestFunctionLoader(doit));
+ ml.globals.getFunctionManager().addFunctionLoader(new TestFunctionLoader(doit));
b = new StringBuffer();
b.append("a = 1;\n");
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|