[Mathlib-commitlog] SF.net SVN: mathlib:[547] JMathLib/trunk/src/jmathlibtests/toolbox/jmathlib /ma
Status: Beta
Brought to you by:
st_mueller
|
From: <st_...@us...> - 2008-12-09 20:41:21
|
Revision: 547
http://mathlib.svn.sourceforge.net/mathlib/?rev=547&view=rev
Author: st_mueller
Date: 2008-12-09 20:41:15 +0000 (Tue, 09 Dec 2008)
Log Message:
-----------
added more tests
Modified Paths:
--------------
JMathLib/trunk/src/jmathlibtests/toolbox/jmathlib/matrix/testAny.java
Modified: JMathLib/trunk/src/jmathlibtests/toolbox/jmathlib/matrix/testAny.java
===================================================================
--- JMathLib/trunk/src/jmathlibtests/toolbox/jmathlib/matrix/testAny.java 2008-12-09 20:39:09 UTC (rev 546)
+++ JMathLib/trunk/src/jmathlibtests/toolbox/jmathlib/matrix/testAny.java 2008-12-09 20:41:15 UTC (rev 547)
@@ -26,7 +26,7 @@
/****** any() **********************************************************/
public void testAny01() {
ml.executeExpression("a=any(1.123);");
- assertTrue(true == ml.getScalarValueBoolean("a"));
+ assertTrue(1.0 == ml.getScalarValueRe("a"));
}
public void testAny02() {
ml.executeExpression("b=any(0.0)");
@@ -37,7 +37,7 @@
double[][] b = {{0.0, 0.0, 0.0},{0.0, 0.0, 0.0},{0.0, 0.0, 0.0}};
ml.setArray("a", a, b);
ml.executeExpression("z = any(a)");
- assertTrue(true == ml.getScalarValueBoolean("z"));
+ assertTrue(1.0 == ml.getScalarValueRe("z"));
}
public void testAny04() {
double[][] a = {{0.0, 0.0, 0.0},{0.0, 0.0, 0.0},{0.0, 0.0, 0.0}};
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|