[Mathlib-commitlog] SF.net SVN: mathlib:[730] JMathLib/trunk/src/jmathlibtests/toolbox
Status: Beta
Brought to you by:
st_mueller
|
From: <st_...@us...> - 2009-01-23 20:09:11
|
Revision: 730
http://mathlib.svn.sourceforge.net/mathlib/?rev=730&view=rev
Author: st_mueller
Date: 2009-01-23 20:09:07 +0000 (Fri, 23 Jan 2009)
Log Message:
-----------
added more tests
Modified Paths:
--------------
JMathLib/trunk/src/jmathlibtests/toolbox/AllTests.java
Added Paths:
-----------
JMathLib/trunk/src/jmathlibtests/toolbox/toolbox_skeleton/
JMathLib/trunk/src/jmathlibtests/toolbox/toolbox_skeleton/AllTests.java
JMathLib/trunk/src/jmathlibtests/toolbox/toolbox_skeleton/testTemplate.java
Modified: JMathLib/trunk/src/jmathlibtests/toolbox/AllTests.java
===================================================================
--- JMathLib/trunk/src/jmathlibtests/toolbox/AllTests.java 2009-01-23 19:42:11 UTC (rev 729)
+++ JMathLib/trunk/src/jmathlibtests/toolbox/AllTests.java 2009-01-23 20:09:07 UTC (rev 730)
@@ -49,6 +49,7 @@
//suite.addTest(jmathlibtests.toolbox.symbolic.AllTests.suite());
suite.addTest(jmathlibtests.toolbox.test.AllTests.suite());
suite.addTest(jmathlibtests.toolbox.time.AllTests.suite());
+ suite.addTest(jmathlibtests.toolbox.toolbox_skeleton.AllTests.suite());
suite.addTest(jmathlibtests.toolbox.trigonometric.AllTests.suite());
suite.addTest(jmathlibtests.toolbox.video.AllTests.suite());
Added: JMathLib/trunk/src/jmathlibtests/toolbox/toolbox_skeleton/AllTests.java
===================================================================
--- JMathLib/trunk/src/jmathlibtests/toolbox/toolbox_skeleton/AllTests.java (rev 0)
+++ JMathLib/trunk/src/jmathlibtests/toolbox/toolbox_skeleton/AllTests.java 2009-01-23 20:09:07 UTC (rev 730)
@@ -0,0 +1,25 @@
+package jmathlibtests.toolbox.toolbox_skeleton;
+
+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("time functions");
+
+ /* include subdirectories here */
+ // none
+
+ /* include tests in this directory here */
+ suite.addTest(jmathlibtests.toolbox.toolbox_skeleton.testTemplate.suite());
+
+ return suite;
+ }
+}
Added: JMathLib/trunk/src/jmathlibtests/toolbox/toolbox_skeleton/testTemplate.java
===================================================================
--- JMathLib/trunk/src/jmathlibtests/toolbox/toolbox_skeleton/testTemplate.java (rev 0)
+++ JMathLib/trunk/src/jmathlibtests/toolbox/toolbox_skeleton/testTemplate.java 2009-01-23 20:09:07 UTC (rev 730)
@@ -0,0 +1,32 @@
+package jmathlibtests.toolbox.toolbox_skeleton;
+
+import jmathlib.core.interpreter.Interpreter;
+import jmathlib.tools.junit.framework.*;
+
+public class testTemplate extends JMathLibTestCase {
+ protected Interpreter ml;
+
+ public testTemplate(String name) {
+ super(name);
+ }
+ public static void main (String[] args) {
+ jmathlib.tools.junit.textui.TestRunner.run (suite());
+ }
+
+ public static Test suite() {
+ return new TestSuite(testTemplate.class);
+ }
+
+ public void testTemplate01() {
+ assertEvalScalarEquals("a=abs(8)", "a", 8);
+ }
+ public void testTemplate02() {
+ assertEvalScalarEquals("A=abs(88)", "A", 88);
+ }
+ public void testTemplate03() {
+ assertEvalScalarEquals("b=55", "b", 55);
+ }
+
+
+
+}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|