Thread: [Mathlib-commitlog] SF.net SVN: mathlib:[638] JMathLib/trunk/src/jmathlibtests
Status: Beta
Brought to you by:
st_mueller
|
From: <st_...@us...> - 2009-01-06 16:33:48
|
Revision: 638
http://mathlib.svn.sourceforge.net/mathlib/?rev=638&view=rev
Author: st_mueller
Date: 2009-01-06 16:33:47 +0000 (Tue, 06 Jan 2009)
Log Message:
-----------
automated tests
Added Paths:
-----------
JMathLib/trunk/src/jmathlibtests/scripts/
JMathLib/trunk/src/jmathlibtests/scripts/AllTests.java
JMathLib/trunk/src/jmathlibtests/scripts/test_src_jmathlib_toolbox_general_bitor1.java
JMathLib/trunk/src/jmathlibtests/scripts/test_src_jmathlib_toolbox_general_bitor2.java
JMathLib/trunk/src/jmathlibtests/scripts/test_src_jmathlib_toolbox_general_sign1.java
JMathLib/trunk/src/jmathlibtests/scripts/test_src_jmathlib_toolbox_general_sign2.java
JMathLib/trunk/src/jmathlibtests/scripts/test_src_jmathlib_toolbox_general_sign3.java
JMathLib/trunk/src/jmathlibtests/scripts/test_src_jmathlib_toolbox_general_sign4.java
JMathLib/trunk/src/jmathlibtests/scripts/test_src_jmathlib_toolbox_general_sign5.java
JMathLib/trunk/src/jmathlibtests/scripts/test_src_jmathlib_toolbox_general_sign6.java
Added: JMathLib/trunk/src/jmathlibtests/scripts/AllTests.java
===================================================================
--- JMathLib/trunk/src/jmathlibtests/scripts/AllTests.java (rev 0)
+++ JMathLib/trunk/src/jmathlibtests/scripts/AllTests.java 2009-01-06 16:33:47 UTC (rev 638)
@@ -0,0 +1,29 @@
+ package jmathlibtests.scripts;
+
+ import jmathlib.tools.junit.framework.*;
+
+ public class AllTests {
+
+ public static void main (String[] args) {
+ jmathlib.tools.junit.textui.TestRunner.run (suite());
+ }
+ public static Test suite ( ) {
+ TestSuite suite= new TestSuite("script functions");
+
+ /* include subdirectories here */
+ // none
+
+ /* include tests in this directory here */
+ suite.addTest(jmathlibtests.toolbox.net.testUrlread.suite());
+ suite.addTest(jmathlibtests.scripts.test_src_jmathlib_toolbox_general_sign6.suite());
+ suite.addTest(jmathlibtests.scripts.test_src_jmathlib_toolbox_general_sign5.suite());
+ suite.addTest(jmathlibtests.scripts.test_src_jmathlib_toolbox_general_sign4.suite());
+ suite.addTest(jmathlibtests.scripts.test_src_jmathlib_toolbox_general_sign3.suite());
+ suite.addTest(jmathlibtests.scripts.test_src_jmathlib_toolbox_general_sign2.suite());
+ suite.addTest(jmathlibtests.scripts.test_src_jmathlib_toolbox_general_sign1.suite());
+ suite.addTest(jmathlibtests.scripts.test_src_jmathlib_toolbox_general_bitor2.suite());
+ suite.addTest(jmathlibtests.scripts.test_src_jmathlib_toolbox_general_bitor1.suite());
+
+ return suite;
+ }
+ }
Added: JMathLib/trunk/src/jmathlibtests/scripts/test_src_jmathlib_toolbox_general_bitor1.java
===================================================================
--- JMathLib/trunk/src/jmathlibtests/scripts/test_src_jmathlib_toolbox_general_bitor1.java (rev 0)
+++ JMathLib/trunk/src/jmathlibtests/scripts/test_src_jmathlib_toolbox_general_bitor1.java 2009-01-06 16:33:47 UTC (rev 638)
@@ -0,0 +1,32 @@
+// test_src_jmathlib_toolbox_general_bitor1
+package jmathlibtests.scripts;
+import jmathlib.core.interpreter.Interpreter;
+import jmathlib.tools.junit.framework.*;
+import jmathlibtests.Compare;
+
+public class test_src_jmathlib_toolbox_general_bitor1 extends TestCase {
+ protected Interpreter ml;
+
+ public test_src_jmathlib_toolbox_general_bitor1(String name) {
+ super(name);
+ }
+ public static void main (String[] args) {
+ jmathlib.tools.junit.textui.TestRunner.run (suite());
+ }
+ protected void setUp() {
+ ml = new Interpreter(true);
+ }
+ protected void tearDown() {
+ ml = null;
+ }
+
+ public static Test suite() {
+ return new TestSuite(test_src_jmathlib_toolbox_general_bitor1.class);
+ }
+ public void test_test_src_jmathlib_toolbox_general_bitor1001()
+ {
+ ml.executeExpression("a=abs(1);");
+ assertTrue(1 == ml.getScalarValueRe("a"));
+
+ }
+}
Added: JMathLib/trunk/src/jmathlibtests/scripts/test_src_jmathlib_toolbox_general_bitor2.java
===================================================================
--- JMathLib/trunk/src/jmathlibtests/scripts/test_src_jmathlib_toolbox_general_bitor2.java (rev 0)
+++ JMathLib/trunk/src/jmathlibtests/scripts/test_src_jmathlib_toolbox_general_bitor2.java 2009-01-06 16:33:47 UTC (rev 638)
@@ -0,0 +1,32 @@
+// test_src_jmathlib_toolbox_general_bitor2
+package jmathlibtests.scripts;
+import jmathlib.core.interpreter.Interpreter;
+import jmathlib.tools.junit.framework.*;
+import jmathlibtests.Compare;
+
+public class test_src_jmathlib_toolbox_general_bitor2 extends TestCase {
+ protected Interpreter ml;
+
+ public test_src_jmathlib_toolbox_general_bitor2(String name) {
+ super(name);
+ }
+ public static void main (String[] args) {
+ jmathlib.tools.junit.textui.TestRunner.run (suite());
+ }
+ protected void setUp() {
+ ml = new Interpreter(true);
+ }
+ protected void tearDown() {
+ ml = null;
+ }
+
+ public static Test suite() {
+ return new TestSuite(test_src_jmathlib_toolbox_general_bitor2.class);
+ }
+ public void test_test_src_jmathlib_toolbox_general_bitor2001()
+ {
+ ml.executeExpression("a=abs(-3);");
+ assertTrue(3 == ml.getScalarValueRe("a"));
+
+ }
+}
Added: JMathLib/trunk/src/jmathlibtests/scripts/test_src_jmathlib_toolbox_general_sign1.java
===================================================================
--- JMathLib/trunk/src/jmathlibtests/scripts/test_src_jmathlib_toolbox_general_sign1.java (rev 0)
+++ JMathLib/trunk/src/jmathlibtests/scripts/test_src_jmathlib_toolbox_general_sign1.java 2009-01-06 16:33:47 UTC (rev 638)
@@ -0,0 +1,33 @@
+// test_src_jmathlib_toolbox_general_sign1
+package jmathlibtests.scripts;
+import jmathlib.core.interpreter.Interpreter;
+import jmathlib.tools.junit.framework.*;
+import jmathlibtests.Compare;
+
+public class test_src_jmathlib_toolbox_general_sign1 extends TestCase {
+ protected Interpreter ml;
+
+ public test_src_jmathlib_toolbox_general_sign1(String name) {
+ super(name);
+ }
+ public static void main (String[] args) {
+ jmathlib.tools.junit.textui.TestRunner.run (suite());
+ }
+ protected void setUp() {
+ ml = new Interpreter(true);
+ }
+ protected void tearDown() {
+ ml = null;
+ }
+
+ public static Test suite() {
+ return new TestSuite(test_src_jmathlib_toolbox_general_sign1.class);
+ }
+ public void test_test_src_jmathlib_toolbox_general_sign1001()
+ {
+ ml.executeExpression("a=sign(11);");
+ assertTrue(1 == ml.getScalarValueRe("a"));
+ assertTrue(0 == ml.getScalarValueIm("a"));
+
+ }
+}
Added: JMathLib/trunk/src/jmathlibtests/scripts/test_src_jmathlib_toolbox_general_sign2.java
===================================================================
--- JMathLib/trunk/src/jmathlibtests/scripts/test_src_jmathlib_toolbox_general_sign2.java (rev 0)
+++ JMathLib/trunk/src/jmathlibtests/scripts/test_src_jmathlib_toolbox_general_sign2.java 2009-01-06 16:33:47 UTC (rev 638)
@@ -0,0 +1,33 @@
+// test_src_jmathlib_toolbox_general_sign2
+package jmathlibtests.scripts;
+import jmathlib.core.interpreter.Interpreter;
+import jmathlib.tools.junit.framework.*;
+import jmathlibtests.Compare;
+
+public class test_src_jmathlib_toolbox_general_sign2 extends TestCase {
+ protected Interpreter ml;
+
+ public test_src_jmathlib_toolbox_general_sign2(String name) {
+ super(name);
+ }
+ public static void main (String[] args) {
+ jmathlib.tools.junit.textui.TestRunner.run (suite());
+ }
+ protected void setUp() {
+ ml = new Interpreter(true);
+ }
+ protected void tearDown() {
+ ml = null;
+ }
+
+ public static Test suite() {
+ return new TestSuite(test_src_jmathlib_toolbox_general_sign2.class);
+ }
+ public void test_test_src_jmathlib_toolbox_general_sign2001()
+ {
+ ml.executeExpression("a=sign(-12);");
+ assertTrue(-1 == ml.getScalarValueRe("a"));
+ assertTrue(0 == ml.getScalarValueIm("a"));
+
+ }
+}
Added: JMathLib/trunk/src/jmathlibtests/scripts/test_src_jmathlib_toolbox_general_sign3.java
===================================================================
--- JMathLib/trunk/src/jmathlibtests/scripts/test_src_jmathlib_toolbox_general_sign3.java (rev 0)
+++ JMathLib/trunk/src/jmathlibtests/scripts/test_src_jmathlib_toolbox_general_sign3.java 2009-01-06 16:33:47 UTC (rev 638)
@@ -0,0 +1,34 @@
+// test_src_jmathlib_toolbox_general_sign3
+package jmathlibtests.scripts;
+import jmathlib.core.interpreter.Interpreter;
+import jmathlib.tools.junit.framework.*;
+import jmathlibtests.Compare;
+
+public class test_src_jmathlib_toolbox_general_sign3 extends TestCase {
+ protected Interpreter ml;
+
+ public test_src_jmathlib_toolbox_general_sign3(String name) {
+ super(name);
+ }
+ public static void main (String[] args) {
+ jmathlib.tools.junit.textui.TestRunner.run (suite());
+ }
+ protected void setUp() {
+ ml = new Interpreter(true);
+ }
+ protected void tearDown() {
+ ml = null;
+ }
+
+ public static Test suite() {
+ return new TestSuite(test_src_jmathlib_toolbox_general_sign3.class);
+ }
+ public void test_test_src_jmathlib_toolbox_general_sign3001()
+ {
+ ml.executeExpression("a=sign(0);");
+ assertTrue(0 == ml.getScalarValueRe("a"));
+ assertTrue(0 == ml.getScalarValueIm("a"));
+
+
+ }
+}
Added: JMathLib/trunk/src/jmathlibtests/scripts/test_src_jmathlib_toolbox_general_sign4.java
===================================================================
--- JMathLib/trunk/src/jmathlibtests/scripts/test_src_jmathlib_toolbox_general_sign4.java (rev 0)
+++ JMathLib/trunk/src/jmathlibtests/scripts/test_src_jmathlib_toolbox_general_sign4.java 2009-01-06 16:33:47 UTC (rev 638)
@@ -0,0 +1,33 @@
+// test_src_jmathlib_toolbox_general_sign4
+package jmathlibtests.scripts;
+import jmathlib.core.interpreter.Interpreter;
+import jmathlib.tools.junit.framework.*;
+import jmathlibtests.Compare;
+
+public class test_src_jmathlib_toolbox_general_sign4 extends TestCase {
+ protected Interpreter ml;
+
+ public test_src_jmathlib_toolbox_general_sign4(String name) {
+ super(name);
+ }
+ public static void main (String[] args) {
+ jmathlib.tools.junit.textui.TestRunner.run (suite());
+ }
+ protected void setUp() {
+ ml = new Interpreter(true);
+ }
+ protected void tearDown() {
+ ml = null;
+ }
+
+ public static Test suite() {
+ return new TestSuite(test_src_jmathlib_toolbox_general_sign4.class);
+ }
+ public void test_test_src_jmathlib_toolbox_general_sign4001()
+ {
+ ml.executeExpression("a=sign(8i);");
+ assertTrue(0 == ml.getScalarValueRe("a"));
+ assertTrue(1 == ml.getScalarValueIm("a"));
+
+ }
+}
Added: JMathLib/trunk/src/jmathlibtests/scripts/test_src_jmathlib_toolbox_general_sign5.java
===================================================================
--- JMathLib/trunk/src/jmathlibtests/scripts/test_src_jmathlib_toolbox_general_sign5.java (rev 0)
+++ JMathLib/trunk/src/jmathlibtests/scripts/test_src_jmathlib_toolbox_general_sign5.java 2009-01-06 16:33:47 UTC (rev 638)
@@ -0,0 +1,33 @@
+// test_src_jmathlib_toolbox_general_sign5
+package jmathlibtests.scripts;
+import jmathlib.core.interpreter.Interpreter;
+import jmathlib.tools.junit.framework.*;
+import jmathlibtests.Compare;
+
+public class test_src_jmathlib_toolbox_general_sign5 extends TestCase {
+ protected Interpreter ml;
+
+ public test_src_jmathlib_toolbox_general_sign5(String name) {
+ super(name);
+ }
+ public static void main (String[] args) {
+ jmathlib.tools.junit.textui.TestRunner.run (suite());
+ }
+ protected void setUp() {
+ ml = new Interpreter(true);
+ }
+ protected void tearDown() {
+ ml = null;
+ }
+
+ public static Test suite() {
+ return new TestSuite(test_src_jmathlib_toolbox_general_sign5.class);
+ }
+ public void test_test_src_jmathlib_toolbox_general_sign5001()
+ {
+ ml.executeExpression("a=sign(-5i);");
+ assertTrue(0 == ml.getScalarValueRe("a"));
+ assertTrue(-1 == ml.getScalarValueIm("a"));
+
+ }
+}
Added: JMathLib/trunk/src/jmathlibtests/scripts/test_src_jmathlib_toolbox_general_sign6.java
===================================================================
--- JMathLib/trunk/src/jmathlibtests/scripts/test_src_jmathlib_toolbox_general_sign6.java (rev 0)
+++ JMathLib/trunk/src/jmathlibtests/scripts/test_src_jmathlib_toolbox_general_sign6.java 2009-01-06 16:33:47 UTC (rev 638)
@@ -0,0 +1,33 @@
+// test_src_jmathlib_toolbox_general_sign6
+package jmathlibtests.scripts;
+import jmathlib.core.interpreter.Interpreter;
+import jmathlib.tools.junit.framework.*;
+import jmathlibtests.Compare;
+
+public class test_src_jmathlib_toolbox_general_sign6 extends TestCase {
+ protected Interpreter ml;
+
+ public test_src_jmathlib_toolbox_general_sign6(String name) {
+ super(name);
+ }
+ public static void main (String[] args) {
+ jmathlib.tools.junit.textui.TestRunner.run (suite());
+ }
+ protected void setUp() {
+ ml = new Interpreter(true);
+ }
+ protected void tearDown() {
+ ml = null;
+ }
+
+ public static Test suite() {
+ return new TestSuite(test_src_jmathlib_toolbox_general_sign6.class);
+ }
+ public void test_test_src_jmathlib_toolbox_general_sign6001()
+ {
+ ml.executeExpression("a=sign(0i);");
+ assertTrue(0 == ml.getScalarValueRe("a"));
+ assertTrue(0 == ml.getScalarValueIm("a"));
+
+ }
+}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <st_...@us...> - 2009-01-17 18:16:03
|
Revision: 689
http://mathlib.svn.sourceforge.net/mathlib/?rev=689&view=rev
Author: st_mueller
Date: 2009-01-17 18:16:01 +0000 (Sat, 17 Jan 2009)
Log Message:
-----------
added more directories
Modified Paths:
--------------
JMathLib/trunk/src/jmathlibtests/AllTests.java
Added Paths:
-----------
JMathLib/trunk/src/jmathlibtests/plugins/
JMathLib/trunk/src/jmathlibtests/plugins/AllTests.java
JMathLib/trunk/src/jmathlibtests/resourcebundles/
JMathLib/trunk/src/jmathlibtests/resourcebundles/AllTests.java
JMathLib/trunk/src/jmathlibtests/ui/
JMathLib/trunk/src/jmathlibtests/ui/AllTests.java
Modified: JMathLib/trunk/src/jmathlibtests/AllTests.java
===================================================================
--- JMathLib/trunk/src/jmathlibtests/AllTests.java 2009-01-17 18:13:29 UTC (rev 688)
+++ JMathLib/trunk/src/jmathlibtests/AllTests.java 2009-01-17 18:16:01 UTC (rev 689)
@@ -17,8 +17,10 @@
/* include subdirectories here */
suite.addTest(jmathlibtests.scripts.AllTests.suite());
suite.addTest(jmathlibtests.core.AllTests.suite());
+ suite.addTest(jmathlibtests.plugins.AllTests.suite());
+ suite.addTest(jmathlibtests.resourcebundles.AllTests.suite());
suite.addTest(jmathlibtests.toolbox.AllTests.suite());
-
+ suite.addTest(jmathlibtests.ui.AllTests.suite());
/* include tests in this directory here */
//suite.addTest(MathLib.Tools.TestSuite.Interpreter.testParser.suite());
Added: JMathLib/trunk/src/jmathlibtests/plugins/AllTests.java
===================================================================
--- JMathLib/trunk/src/jmathlibtests/plugins/AllTests.java (rev 0)
+++ JMathLib/trunk/src/jmathlibtests/plugins/AllTests.java 2009-01-17 18:16:01 UTC (rev 689)
@@ -0,0 +1,27 @@
+package jmathlibtests.plugins;
+
+import jmathlib.tools.junit.framework.*;
+
+/**
+ * TestSuite that runs all the tests
+ *
+ */
+public class AllTests {
+
+ public static void main (String[] args) {
+ jmathlib.tools.junit.textui.TestRunner.run (suite());
+ }
+ public static Test suite ( ) {
+ TestSuite suite= new TestSuite("plugins");
+
+ /* include subdirectories here */
+ //suite.addTest(jmathlibtests.core.functions.AllTests.suite());
+
+
+ /* include tests in this directory here */
+ //suite.addTest(MathLib.Tools.TestSuite.Interpreter.testParser.suite());
+
+ return suite;
+ }
+}
+
Added: JMathLib/trunk/src/jmathlibtests/resourcebundles/AllTests.java
===================================================================
--- JMathLib/trunk/src/jmathlibtests/resourcebundles/AllTests.java (rev 0)
+++ JMathLib/trunk/src/jmathlibtests/resourcebundles/AllTests.java 2009-01-17 18:16:01 UTC (rev 689)
@@ -0,0 +1,27 @@
+package jmathlibtests.resourcebundles;
+
+import jmathlib.tools.junit.framework.*;
+
+/**
+ * TestSuite that runs all the tests
+ *
+ */
+public class AllTests {
+
+ public static void main (String[] args) {
+ jmathlib.tools.junit.textui.TestRunner.run (suite());
+ }
+ public static Test suite ( ) {
+ TestSuite suite= new TestSuite("resourcebundles");
+
+ /* include subdirectories here */
+ //suite.addTest(jmathlibtests.core.functions.AllTests.suite());
+
+
+ /* include tests in this directory here */
+ //suite.addTest(MathLib.Tools.TestSuite.Interpreter.testParser.suite());
+
+ return suite;
+ }
+}
+
Added: JMathLib/trunk/src/jmathlibtests/ui/AllTests.java
===================================================================
--- JMathLib/trunk/src/jmathlibtests/ui/AllTests.java (rev 0)
+++ JMathLib/trunk/src/jmathlibtests/ui/AllTests.java 2009-01-17 18:16:01 UTC (rev 689)
@@ -0,0 +1,27 @@
+package jmathlibtests.ui;
+
+import jmathlib.tools.junit.framework.*;
+
+/**
+ * TestSuite that runs all the tests
+ *
+ */
+public class AllTests {
+
+ public static void main (String[] args) {
+ jmathlib.tools.junit.textui.TestRunner.run (suite());
+ }
+ public static Test suite ( ) {
+ TestSuite suite= new TestSuite("ui");
+
+ /* include subdirectories here */
+ //suite.addTest(jmathlibtests.core.functions.AllTests.suite());
+
+
+ /* include tests in this directory here */
+ //suite.addTest(MathLib.Tools.TestSuite.Interpreter.testParser.suite());
+
+ return suite;
+ }
+}
+
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <st_...@us...> - 2009-01-24 08:56:27
|
Revision: 737
http://mathlib.svn.sourceforge.net/mathlib/?rev=737&view=rev
Author: st_mueller
Date: 2009-01-24 08:56:25 +0000 (Sat, 24 Jan 2009)
Log Message:
-----------
added copyright notice
Modified Paths:
--------------
JMathLib/trunk/src/jmathlibtests/AllTests.java
JMathLib/trunk/src/jmathlibtests/toolbox/toolbox_skeleton/AllTests.java
JMathLib/trunk/src/jmathlibtests/toolbox/toolbox_skeleton/testTemplate.java
Modified: JMathLib/trunk/src/jmathlibtests/AllTests.java
===================================================================
--- JMathLib/trunk/src/jmathlibtests/AllTests.java 2009-01-24 08:55:19 UTC (rev 736)
+++ JMathLib/trunk/src/jmathlibtests/AllTests.java 2009-01-24 08:56:25 UTC (rev 737)
@@ -1,3 +1,12 @@
+/*
+ * This file is part or JMathLib
+ *
+ * Check it out at http://www.jmathlib.de
+ *
+ * Author: Stefan Mueller (st...@he...)
+ * (c) 2007, 2008, 2009
+ */
+
package jmathlibtests;
import jmathlib.tools.junit.framework.*;
Modified: JMathLib/trunk/src/jmathlibtests/toolbox/toolbox_skeleton/AllTests.java
===================================================================
--- JMathLib/trunk/src/jmathlibtests/toolbox/toolbox_skeleton/AllTests.java 2009-01-24 08:55:19 UTC (rev 736)
+++ JMathLib/trunk/src/jmathlibtests/toolbox/toolbox_skeleton/AllTests.java 2009-01-24 08:56:25 UTC (rev 737)
@@ -1,3 +1,12 @@
+/*
+ * This file is part or JMathLib
+ *
+ * Check it out at http://www.jmathlib.de
+ *
+ * Author: Stefan Mueller (st...@he...)
+ * (c) 2007, 2008, 2009
+ */
+
package jmathlibtests.toolbox.toolbox_skeleton;
import jmathlib.tools.junit.framework.*;
Modified: JMathLib/trunk/src/jmathlibtests/toolbox/toolbox_skeleton/testTemplate.java
===================================================================
--- JMathLib/trunk/src/jmathlibtests/toolbox/toolbox_skeleton/testTemplate.java 2009-01-24 08:55:19 UTC (rev 736)
+++ JMathLib/trunk/src/jmathlibtests/toolbox/toolbox_skeleton/testTemplate.java 2009-01-24 08:56:25 UTC (rev 737)
@@ -1,3 +1,12 @@
+/*
+ * This file is part or JMathLib
+ *
+ * Check it out at http://www.jmathlib.de
+ *
+ * Author: Stefan Mueller (st...@he...)
+ * (c) 2007, 2008, 2009
+ */
+
package jmathlibtests.toolbox.toolbox_skeleton;
import jmathlib.core.interpreter.Interpreter;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|