Thread: [Mathlib-commitlog] SF.net SVN: mathlib:[645] JMathLib/trunk/src/jmathlibtests/scripts
Status: Beta
Brought to you by:
st_mueller
|
From: <st_...@us...> - 2009-01-07 19:38:46
|
Revision: 645
http://mathlib.svn.sourceforge.net/mathlib/?rev=645&view=rev
Author: st_mueller
Date: 2009-01-07 19:38:40 +0000 (Wed, 07 Jan 2009)
Log Message:
-----------
changed path name -> changed file names
Added Paths:
-----------
JMathLib/trunk/src/jmathlibtests/scripts/test_jmathlib_toolbox_general_bitor1.java
JMathLib/trunk/src/jmathlibtests/scripts/test_jmathlib_toolbox_general_bitor2.java
JMathLib/trunk/src/jmathlibtests/scripts/test_jmathlib_toolbox_general_sign1.java
JMathLib/trunk/src/jmathlibtests/scripts/test_jmathlib_toolbox_general_sign2.java
JMathLib/trunk/src/jmathlibtests/scripts/test_jmathlib_toolbox_general_sign3.java
JMathLib/trunk/src/jmathlibtests/scripts/test_jmathlib_toolbox_general_sign4.java
JMathLib/trunk/src/jmathlibtests/scripts/test_jmathlib_toolbox_general_sign5.java
JMathLib/trunk/src/jmathlibtests/scripts/test_jmathlib_toolbox_general_sign6.java
Copied: JMathLib/trunk/src/jmathlibtests/scripts/test_jmathlib_toolbox_general_bitor1.java (from rev 638, JMathLib/trunk/src/jmathlibtests/scripts/test_src_jmathlib_toolbox_general_bitor1.java)
===================================================================
--- JMathLib/trunk/src/jmathlibtests/scripts/test_jmathlib_toolbox_general_bitor1.java (rev 0)
+++ JMathLib/trunk/src/jmathlibtests/scripts/test_jmathlib_toolbox_general_bitor1.java 2009-01-07 19:38:40 UTC (rev 645)
@@ -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"));
+
+ }
+}
Copied: JMathLib/trunk/src/jmathlibtests/scripts/test_jmathlib_toolbox_general_bitor2.java (from rev 638, JMathLib/trunk/src/jmathlibtests/scripts/test_src_jmathlib_toolbox_general_bitor2.java)
===================================================================
--- JMathLib/trunk/src/jmathlibtests/scripts/test_jmathlib_toolbox_general_bitor2.java (rev 0)
+++ JMathLib/trunk/src/jmathlibtests/scripts/test_jmathlib_toolbox_general_bitor2.java 2009-01-07 19:38:40 UTC (rev 645)
@@ -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"));
+
+ }
+}
Copied: JMathLib/trunk/src/jmathlibtests/scripts/test_jmathlib_toolbox_general_sign1.java (from rev 638, JMathLib/trunk/src/jmathlibtests/scripts/test_src_jmathlib_toolbox_general_sign1.java)
===================================================================
--- JMathLib/trunk/src/jmathlibtests/scripts/test_jmathlib_toolbox_general_sign1.java (rev 0)
+++ JMathLib/trunk/src/jmathlibtests/scripts/test_jmathlib_toolbox_general_sign1.java 2009-01-07 19:38:40 UTC (rev 645)
@@ -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"));
+
+ }
+}
Copied: JMathLib/trunk/src/jmathlibtests/scripts/test_jmathlib_toolbox_general_sign2.java (from rev 638, JMathLib/trunk/src/jmathlibtests/scripts/test_src_jmathlib_toolbox_general_sign2.java)
===================================================================
--- JMathLib/trunk/src/jmathlibtests/scripts/test_jmathlib_toolbox_general_sign2.java (rev 0)
+++ JMathLib/trunk/src/jmathlibtests/scripts/test_jmathlib_toolbox_general_sign2.java 2009-01-07 19:38:40 UTC (rev 645)
@@ -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"));
+
+ }
+}
Copied: JMathLib/trunk/src/jmathlibtests/scripts/test_jmathlib_toolbox_general_sign3.java (from rev 638, JMathLib/trunk/src/jmathlibtests/scripts/test_src_jmathlib_toolbox_general_sign3.java)
===================================================================
--- JMathLib/trunk/src/jmathlibtests/scripts/test_jmathlib_toolbox_general_sign3.java (rev 0)
+++ JMathLib/trunk/src/jmathlibtests/scripts/test_jmathlib_toolbox_general_sign3.java 2009-01-07 19:38:40 UTC (rev 645)
@@ -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"));
+
+
+ }
+}
Copied: JMathLib/trunk/src/jmathlibtests/scripts/test_jmathlib_toolbox_general_sign4.java (from rev 638, JMathLib/trunk/src/jmathlibtests/scripts/test_src_jmathlib_toolbox_general_sign4.java)
===================================================================
--- JMathLib/trunk/src/jmathlibtests/scripts/test_jmathlib_toolbox_general_sign4.java (rev 0)
+++ JMathLib/trunk/src/jmathlibtests/scripts/test_jmathlib_toolbox_general_sign4.java 2009-01-07 19:38:40 UTC (rev 645)
@@ -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"));
+
+ }
+}
Copied: JMathLib/trunk/src/jmathlibtests/scripts/test_jmathlib_toolbox_general_sign5.java (from rev 638, JMathLib/trunk/src/jmathlibtests/scripts/test_src_jmathlib_toolbox_general_sign5.java)
===================================================================
--- JMathLib/trunk/src/jmathlibtests/scripts/test_jmathlib_toolbox_general_sign5.java (rev 0)
+++ JMathLib/trunk/src/jmathlibtests/scripts/test_jmathlib_toolbox_general_sign5.java 2009-01-07 19:38:40 UTC (rev 645)
@@ -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"));
+
+ }
+}
Copied: JMathLib/trunk/src/jmathlibtests/scripts/test_jmathlib_toolbox_general_sign6.java (from rev 638, JMathLib/trunk/src/jmathlibtests/scripts/test_src_jmathlib_toolbox_general_sign6.java)
===================================================================
--- JMathLib/trunk/src/jmathlibtests/scripts/test_jmathlib_toolbox_general_sign6.java (rev 0)
+++ JMathLib/trunk/src/jmathlibtests/scripts/test_jmathlib_toolbox_general_sign6.java 2009-01-07 19:38:40 UTC (rev 645)
@@ -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-07 20:14:17
|
Revision: 646
http://mathlib.svn.sourceforge.net/mathlib/?rev=646&view=rev
Author: st_mueller
Date: 2009-01-07 20:14:13 +0000 (Wed, 07 Jan 2009)
Log Message:
-----------
automated test case generation
Added Paths:
-----------
JMathLib/trunk/src/jmathlibtests/scripts/test_jmathlib_toolbox_general_bitor.java
JMathLib/trunk/src/jmathlibtests/scripts/test_jmathlib_toolbox_general_sign.java
JMathLib/trunk/src/jmathlibtests/scripts/test_jmathlib_toolbox_jmathlib_internal_e.java
JMathLib/trunk/src/jmathlibtests/scripts/test_jmathlib_toolbox_jmathlib_internal_i.java
JMathLib/trunk/src/jmathlibtests/scripts/test_jmathlib_toolbox_jmathlib_internal_j.java
JMathLib/trunk/src/jmathlibtests/scripts/test_jmathlib_toolbox_jmathlib_internal_minusminus.java
JMathLib/trunk/src/jmathlibtests/scripts/test_jmathlib_toolbox_jmathlib_internal_pi.java
JMathLib/trunk/src/jmathlibtests/scripts/test_jmathlib_toolbox_jmathlib_internal_plusplus.java
Added: JMathLib/trunk/src/jmathlibtests/scripts/test_jmathlib_toolbox_general_bitor.java
===================================================================
--- JMathLib/trunk/src/jmathlibtests/scripts/test_jmathlib_toolbox_general_bitor.java (rev 0)
+++ JMathLib/trunk/src/jmathlibtests/scripts/test_jmathlib_toolbox_general_bitor.java 2009-01-07 20:14:13 UTC (rev 646)
@@ -0,0 +1,40 @@
+// test_jmathlib_toolbox_general_bitor
+package jmathlibtests.scripts;
+import jmathlib.core.interpreter.Interpreter;
+import jmathlib.tools.junit.framework.*;
+import jmathlibtests.Compare;
+
+public class test_jmathlib_toolbox_general_bitor extends TestCase {
+ protected Interpreter ml;
+
+ public test_jmathlib_toolbox_general_bitor(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_jmathlib_toolbox_general_bitor.class);
+ }
+
+ public void test_jmathlib_toolbox_general_bitor0()
+ {
+ ml.executeExpression("a=abs(-3);");
+ assertTrue(3 == ml.getScalarValueRe("a"));
+
+ }
+
+ public void test_jmathlib_toolbox_general_bitor1()
+ {
+ ml.executeExpression("a=abs(1);");
+ assertTrue(1 == ml.getScalarValueRe("a"));
+
+ }
+}
Added: JMathLib/trunk/src/jmathlibtests/scripts/test_jmathlib_toolbox_general_sign.java
===================================================================
--- JMathLib/trunk/src/jmathlibtests/scripts/test_jmathlib_toolbox_general_sign.java (rev 0)
+++ JMathLib/trunk/src/jmathlibtests/scripts/test_jmathlib_toolbox_general_sign.java 2009-01-07 20:14:13 UTC (rev 646)
@@ -0,0 +1,75 @@
+// test_jmathlib_toolbox_general_sign
+package jmathlibtests.scripts;
+import jmathlib.core.interpreter.Interpreter;
+import jmathlib.tools.junit.framework.*;
+import jmathlibtests.Compare;
+
+public class test_jmathlib_toolbox_general_sign extends TestCase {
+ protected Interpreter ml;
+
+ public test_jmathlib_toolbox_general_sign(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_jmathlib_toolbox_general_sign.class);
+ }
+
+ public void test_jmathlib_toolbox_general_sign0()
+ {
+ ml.executeExpression("a=sign(0i);");
+ assertTrue(0 == ml.getScalarValueRe("a"));
+ assertTrue(0 == ml.getScalarValueIm("a"));
+
+ }
+
+ public void test_jmathlib_toolbox_general_sign1()
+ {
+ ml.executeExpression("a=sign(-5i);");
+ assertTrue(0 == ml.getScalarValueRe("a"));
+ assertTrue(-1 == ml.getScalarValueIm("a"));
+
+ }
+
+ public void test_jmathlib_toolbox_general_sign2()
+ {
+ ml.executeExpression("a=sign(8i);");
+ assertTrue(0 == ml.getScalarValueRe("a"));
+ assertTrue(1 == ml.getScalarValueIm("a"));
+
+ }
+
+ public void test_jmathlib_toolbox_general_sign3()
+ {
+ ml.executeExpression("a=sign(0);");
+ assertTrue(0 == ml.getScalarValueRe("a"));
+ assertTrue(0 == ml.getScalarValueIm("a"));
+
+
+ }
+
+ public void test_jmathlib_toolbox_general_sign4()
+ {
+ ml.executeExpression("a=sign(-12);");
+ assertTrue(-1 == ml.getScalarValueRe("a"));
+ assertTrue(0 == ml.getScalarValueIm("a"));
+
+ }
+
+ public void test_jmathlib_toolbox_general_sign5()
+ {
+ ml.executeExpression("a=sign(11);");
+ assertTrue(1 == ml.getScalarValueRe("a"));
+ assertTrue(0 == ml.getScalarValueIm("a"));
+
+ }
+}
Added: JMathLib/trunk/src/jmathlibtests/scripts/test_jmathlib_toolbox_jmathlib_internal_e.java
===================================================================
--- JMathLib/trunk/src/jmathlibtests/scripts/test_jmathlib_toolbox_jmathlib_internal_e.java (rev 0)
+++ JMathLib/trunk/src/jmathlibtests/scripts/test_jmathlib_toolbox_jmathlib_internal_e.java 2009-01-07 20:14:13 UTC (rev 646)
@@ -0,0 +1,35 @@
+// test_jmathlib_toolbox_jmathlib_internal_e
+package jmathlibtests.scripts;
+import jmathlib.core.interpreter.Interpreter;
+import jmathlib.tools.junit.framework.*;
+import jmathlibtests.Compare;
+
+public class test_jmathlib_toolbox_jmathlib_internal_e extends TestCase {
+ protected Interpreter ml;
+
+ public test_jmathlib_toolbox_jmathlib_internal_e(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_jmathlib_toolbox_jmathlib_internal_e.class);
+ }
+
+ public void test_jmathlib_toolbox_jmathlib_internal_e0()
+ {
+ ml.executeExpression("clear('all');");
+ ml.executeExpression("a=e;");
+ assertEquals( 2.71828182, ml.getScalarValueRe("a"), 0.0001);
+ assertTrue( 0 == ml.getScalarValueIm("a"));
+
+ }
+}
Added: JMathLib/trunk/src/jmathlibtests/scripts/test_jmathlib_toolbox_jmathlib_internal_i.java
===================================================================
--- JMathLib/trunk/src/jmathlibtests/scripts/test_jmathlib_toolbox_jmathlib_internal_i.java (rev 0)
+++ JMathLib/trunk/src/jmathlibtests/scripts/test_jmathlib_toolbox_jmathlib_internal_i.java 2009-01-07 20:14:13 UTC (rev 646)
@@ -0,0 +1,50 @@
+// test_jmathlib_toolbox_jmathlib_internal_i
+package jmathlibtests.scripts;
+import jmathlib.core.interpreter.Interpreter;
+import jmathlib.tools.junit.framework.*;
+import jmathlibtests.Compare;
+
+public class test_jmathlib_toolbox_jmathlib_internal_i extends TestCase {
+ protected Interpreter ml;
+
+ public test_jmathlib_toolbox_jmathlib_internal_i(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_jmathlib_toolbox_jmathlib_internal_i.class);
+ }
+
+ public void test_jmathlib_toolbox_jmathlib_internal_i0()
+ {
+ ml.executeExpression("a=3;");
+ assertTrue(3 == ml.getScalarValueRe("a"));
+ assertTrue(0 == ml.getScalarValueIm("a"));
+
+ }
+
+ public void test_jmathlib_toolbox_jmathlib_internal_i1()
+ {
+ ml.executeExpression("a=2+3i;");
+ assertTrue(2 == ml.getScalarValueRe("a"));
+ assertTrue(3 == ml.getScalarValueIm("a"));
+
+ }
+
+ public void test_jmathlib_toolbox_jmathlib_internal_i2()
+ {
+ ml.executeExpression("a=i;");
+ assertTrue(0 == ml.getScalarValueRe("a"));
+ assertTrue(1 == ml.getScalarValueIm("a"));
+
+ }
+}
Added: JMathLib/trunk/src/jmathlibtests/scripts/test_jmathlib_toolbox_jmathlib_internal_j.java
===================================================================
--- JMathLib/trunk/src/jmathlibtests/scripts/test_jmathlib_toolbox_jmathlib_internal_j.java (rev 0)
+++ JMathLib/trunk/src/jmathlibtests/scripts/test_jmathlib_toolbox_jmathlib_internal_j.java 2009-01-07 20:14:13 UTC (rev 646)
@@ -0,0 +1,50 @@
+// test_jmathlib_toolbox_jmathlib_internal_j
+package jmathlibtests.scripts;
+import jmathlib.core.interpreter.Interpreter;
+import jmathlib.tools.junit.framework.*;
+import jmathlibtests.Compare;
+
+public class test_jmathlib_toolbox_jmathlib_internal_j extends TestCase {
+ protected Interpreter ml;
+
+ public test_jmathlib_toolbox_jmathlib_internal_j(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_jmathlib_toolbox_jmathlib_internal_j.class);
+ }
+
+ public void test_jmathlib_toolbox_jmathlib_internal_j0()
+ {
+ ml.executeExpression("a=3;");
+ assertTrue(3 == ml.getScalarValueRe("a"));
+ assertTrue(0 == ml.getScalarValueIm("a"));
+
+ }
+
+ public void test_jmathlib_toolbox_jmathlib_internal_j1()
+ {
+ ml.executeExpression("a=2+3i;");
+ assertTrue(2 == ml.getScalarValueRe("a"));
+ assertTrue(3 == ml.getScalarValueIm("a"));
+
+ }
+
+ public void test_jmathlib_toolbox_jmathlib_internal_j2()
+ {
+ ml.executeExpression("a=i;");
+ assertTrue(0 == ml.getScalarValueRe("a"));
+ assertTrue(1 == ml.getScalarValueIm("a"));
+
+ }
+}
Added: JMathLib/trunk/src/jmathlibtests/scripts/test_jmathlib_toolbox_jmathlib_internal_minusminus.java
===================================================================
--- JMathLib/trunk/src/jmathlibtests/scripts/test_jmathlib_toolbox_jmathlib_internal_minusminus.java (rev 0)
+++ JMathLib/trunk/src/jmathlibtests/scripts/test_jmathlib_toolbox_jmathlib_internal_minusminus.java 2009-01-07 20:14:13 UTC (rev 646)
@@ -0,0 +1,35 @@
+// test_jmathlib_toolbox_jmathlib_internal_minusminus
+package jmathlibtests.scripts;
+import jmathlib.core.interpreter.Interpreter;
+import jmathlib.tools.junit.framework.*;
+import jmathlibtests.Compare;
+
+public class test_jmathlib_toolbox_jmathlib_internal_minusminus extends TestCase {
+ protected Interpreter ml;
+
+ public test_jmathlib_toolbox_jmathlib_internal_minusminus(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_jmathlib_toolbox_jmathlib_internal_minusminus.class);
+ }
+
+ public void test_jmathlib_toolbox_jmathlib_internal_minusminus0()
+ {
+ ml.executeExpression("a=2;");
+ ml.executeExpression("a--;");
+ assertTrue(1 == ml.getScalarValueRe("a"));
+ assertTrue(0 == ml.getScalarValueIm("a"));
+
+ }
+}
Added: JMathLib/trunk/src/jmathlibtests/scripts/test_jmathlib_toolbox_jmathlib_internal_pi.java
===================================================================
--- JMathLib/trunk/src/jmathlibtests/scripts/test_jmathlib_toolbox_jmathlib_internal_pi.java (rev 0)
+++ JMathLib/trunk/src/jmathlibtests/scripts/test_jmathlib_toolbox_jmathlib_internal_pi.java 2009-01-07 20:14:13 UTC (rev 646)
@@ -0,0 +1,35 @@
+// test_jmathlib_toolbox_jmathlib_internal_pi
+package jmathlibtests.scripts;
+import jmathlib.core.interpreter.Interpreter;
+import jmathlib.tools.junit.framework.*;
+import jmathlibtests.Compare;
+
+public class test_jmathlib_toolbox_jmathlib_internal_pi extends TestCase {
+ protected Interpreter ml;
+
+ public test_jmathlib_toolbox_jmathlib_internal_pi(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_jmathlib_toolbox_jmathlib_internal_pi.class);
+ }
+
+ public void test_jmathlib_toolbox_jmathlib_internal_pi0()
+ {
+ ml.executeExpression("clear('all');");
+ ml.executeExpression("a=pi;");
+ assertEquals( 3.1415926, ml.getScalarValueRe("a"), 0.0001);
+ assertTrue(0 == ml.getScalarValueIm("a"));
+
+ }
+}
Added: JMathLib/trunk/src/jmathlibtests/scripts/test_jmathlib_toolbox_jmathlib_internal_plusplus.java
===================================================================
--- JMathLib/trunk/src/jmathlibtests/scripts/test_jmathlib_toolbox_jmathlib_internal_plusplus.java (rev 0)
+++ JMathLib/trunk/src/jmathlibtests/scripts/test_jmathlib_toolbox_jmathlib_internal_plusplus.java 2009-01-07 20:14:13 UTC (rev 646)
@@ -0,0 +1,35 @@
+// test_jmathlib_toolbox_jmathlib_internal_plusplus
+package jmathlibtests.scripts;
+import jmathlib.core.interpreter.Interpreter;
+import jmathlib.tools.junit.framework.*;
+import jmathlibtests.Compare;
+
+public class test_jmathlib_toolbox_jmathlib_internal_plusplus extends TestCase {
+ protected Interpreter ml;
+
+ public test_jmathlib_toolbox_jmathlib_internal_plusplus(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_jmathlib_toolbox_jmathlib_internal_plusplus.class);
+ }
+
+ public void test_jmathlib_toolbox_jmathlib_internal_plusplus0()
+ {
+ ml.executeExpression("a=2;");
+ ml.executeExpression("a++;");
+ assertTrue(3 == 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-07 20:16:49
|
Revision: 650
http://mathlib.svn.sourceforge.net/mathlib/?rev=650&view=rev
Author: st_mueller
Date: 2009-01-07 20:16:46 +0000 (Wed, 07 Jan 2009)
Log Message:
-----------
automated test case generation
Removed Paths:
-------------
JMathLib/trunk/src/jmathlibtests/scripts/test_jmathlib_toolbox_general_bitor1.java
JMathLib/trunk/src/jmathlibtests/scripts/test_jmathlib_toolbox_general_bitor2.java
JMathLib/trunk/src/jmathlibtests/scripts/test_jmathlib_toolbox_general_sign1.java
JMathLib/trunk/src/jmathlibtests/scripts/test_jmathlib_toolbox_general_sign2.java
JMathLib/trunk/src/jmathlibtests/scripts/test_jmathlib_toolbox_general_sign3.java
JMathLib/trunk/src/jmathlibtests/scripts/test_jmathlib_toolbox_general_sign4.java
JMathLib/trunk/src/jmathlibtests/scripts/test_jmathlib_toolbox_general_sign5.java
JMathLib/trunk/src/jmathlibtests/scripts/test_jmathlib_toolbox_general_sign6.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
Deleted: JMathLib/trunk/src/jmathlibtests/scripts/test_jmathlib_toolbox_general_bitor1.java
===================================================================
--- JMathLib/trunk/src/jmathlibtests/scripts/test_jmathlib_toolbox_general_bitor1.java 2009-01-07 20:16:19 UTC (rev 649)
+++ JMathLib/trunk/src/jmathlibtests/scripts/test_jmathlib_toolbox_general_bitor1.java 2009-01-07 20:16:46 UTC (rev 650)
@@ -1,32 +0,0 @@
-// 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"));
-
- }
-}
Deleted: JMathLib/trunk/src/jmathlibtests/scripts/test_jmathlib_toolbox_general_bitor2.java
===================================================================
--- JMathLib/trunk/src/jmathlibtests/scripts/test_jmathlib_toolbox_general_bitor2.java 2009-01-07 20:16:19 UTC (rev 649)
+++ JMathLib/trunk/src/jmathlibtests/scripts/test_jmathlib_toolbox_general_bitor2.java 2009-01-07 20:16:46 UTC (rev 650)
@@ -1,32 +0,0 @@
-// 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"));
-
- }
-}
Deleted: JMathLib/trunk/src/jmathlibtests/scripts/test_jmathlib_toolbox_general_sign1.java
===================================================================
--- JMathLib/trunk/src/jmathlibtests/scripts/test_jmathlib_toolbox_general_sign1.java 2009-01-07 20:16:19 UTC (rev 649)
+++ JMathLib/trunk/src/jmathlibtests/scripts/test_jmathlib_toolbox_general_sign1.java 2009-01-07 20:16:46 UTC (rev 650)
@@ -1,33 +0,0 @@
-// 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"));
-
- }
-}
Deleted: JMathLib/trunk/src/jmathlibtests/scripts/test_jmathlib_toolbox_general_sign2.java
===================================================================
--- JMathLib/trunk/src/jmathlibtests/scripts/test_jmathlib_toolbox_general_sign2.java 2009-01-07 20:16:19 UTC (rev 649)
+++ JMathLib/trunk/src/jmathlibtests/scripts/test_jmathlib_toolbox_general_sign2.java 2009-01-07 20:16:46 UTC (rev 650)
@@ -1,33 +0,0 @@
-// 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"));
-
- }
-}
Deleted: JMathLib/trunk/src/jmathlibtests/scripts/test_jmathlib_toolbox_general_sign3.java
===================================================================
--- JMathLib/trunk/src/jmathlibtests/scripts/test_jmathlib_toolbox_general_sign3.java 2009-01-07 20:16:19 UTC (rev 649)
+++ JMathLib/trunk/src/jmathlibtests/scripts/test_jmathlib_toolbox_general_sign3.java 2009-01-07 20:16:46 UTC (rev 650)
@@ -1,34 +0,0 @@
-// 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"));
-
-
- }
-}
Deleted: JMathLib/trunk/src/jmathlibtests/scripts/test_jmathlib_toolbox_general_sign4.java
===================================================================
--- JMathLib/trunk/src/jmathlibtests/scripts/test_jmathlib_toolbox_general_sign4.java 2009-01-07 20:16:19 UTC (rev 649)
+++ JMathLib/trunk/src/jmathlibtests/scripts/test_jmathlib_toolbox_general_sign4.java 2009-01-07 20:16:46 UTC (rev 650)
@@ -1,33 +0,0 @@
-// 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"));
-
- }
-}
Deleted: JMathLib/trunk/src/jmathlibtests/scripts/test_jmathlib_toolbox_general_sign5.java
===================================================================
--- JMathLib/trunk/src/jmathlibtests/scripts/test_jmathlib_toolbox_general_sign5.java 2009-01-07 20:16:19 UTC (rev 649)
+++ JMathLib/trunk/src/jmathlibtests/scripts/test_jmathlib_toolbox_general_sign5.java 2009-01-07 20:16:46 UTC (rev 650)
@@ -1,33 +0,0 @@
-// 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"));
-
- }
-}
Deleted: JMathLib/trunk/src/jmathlibtests/scripts/test_jmathlib_toolbox_general_sign6.java
===================================================================
--- JMathLib/trunk/src/jmathlibtests/scripts/test_jmathlib_toolbox_general_sign6.java 2009-01-07 20:16:19 UTC (rev 649)
+++ JMathLib/trunk/src/jmathlibtests/scripts/test_jmathlib_toolbox_general_sign6.java 2009-01-07 20:16:46 UTC (rev 650)
@@ -1,33 +0,0 @@
-// 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"));
-
- }
-}
Deleted: JMathLib/trunk/src/jmathlibtests/scripts/test_src_jmathlib_toolbox_general_bitor1.java
===================================================================
--- JMathLib/trunk/src/jmathlibtests/scripts/test_src_jmathlib_toolbox_general_bitor1.java 2009-01-07 20:16:19 UTC (rev 649)
+++ JMathLib/trunk/src/jmathlibtests/scripts/test_src_jmathlib_toolbox_general_bitor1.java 2009-01-07 20:16:46 UTC (rev 650)
@@ -1,32 +0,0 @@
-// 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"));
-
- }
-}
Deleted: JMathLib/trunk/src/jmathlibtests/scripts/test_src_jmathlib_toolbox_general_bitor2.java
===================================================================
--- JMathLib/trunk/src/jmathlibtests/scripts/test_src_jmathlib_toolbox_general_bitor2.java 2009-01-07 20:16:19 UTC (rev 649)
+++ JMathLib/trunk/src/jmathlibtests/scripts/test_src_jmathlib_toolbox_general_bitor2.java 2009-01-07 20:16:46 UTC (rev 650)
@@ -1,32 +0,0 @@
-// 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"));
-
- }
-}
Deleted: JMathLib/trunk/src/jmathlibtests/scripts/test_src_jmathlib_toolbox_general_sign1.java
===================================================================
--- JMathLib/trunk/src/jmathlibtests/scripts/test_src_jmathlib_toolbox_general_sign1.java 2009-01-07 20:16:19 UTC (rev 649)
+++ JMathLib/trunk/src/jmathlibtests/scripts/test_src_jmathlib_toolbox_general_sign1.java 2009-01-07 20:16:46 UTC (rev 650)
@@ -1,33 +0,0 @@
-// 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"));
-
- }
-}
Deleted: JMathLib/trunk/src/jmathlibtests/scripts/test_src_jmathlib_toolbox_general_sign2.java
===================================================================
--- JMathLib/trunk/src/jmathlibtests/scripts/test_src_jmathlib_toolbox_general_sign2.java 2009-01-07 20:16:19 UTC (rev 649)
+++ JMathLib/trunk/src/jmathlibtests/scripts/test_src_jmathlib_toolbox_general_sign2.java 2009-01-07 20:16:46 UTC (rev 650)
@@ -1,33 +0,0 @@
-// 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"));
-
- }
-}
Deleted: JMathLib/trunk/src/jmathlibtests/scripts/test_src_jmathlib_toolbox_general_sign3.java
===================================================================
--- JMathLib/trunk/src/jmathlibtests/scripts/test_src_jmathlib_toolbox_general_sign3.java 2009-01-07 20:16:19 UTC (rev 649)
+++ JMathLib/trunk/src/jmathlibtests/scripts/test_src_jmathlib_toolbox_general_sign3.java 2009-01-07 20:16:46 UTC (rev 650)
@@ -1,34 +0,0 @@
-// 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"));
-
-
- }
-}
Deleted: JMathLib/trunk/src/jmathlibtests/scripts/test_src_jmathlib_toolbox_general_sign4.java
===================================================================
--- JMathLib/trunk/src/jmathlibtests/scripts/test_src_jmathlib_toolbox_general_sign4.java 2009-01-07 20:16:19 UTC (rev 649)
+++ JMathLib/trunk/src/jmathlibtests/scripts/test_src_jmathlib_toolbox_general_sign4.java 2009-01-07 20:16:46 UTC (rev 650)
@@ -1,33 +0,0 @@
-// 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"));
-
- }
-}
Deleted: JMathLib/trunk/src/jmathlibtests/scripts/test_src_jmathlib_toolbox_general_sign5.java
===================================================================
--- JMathLib/trunk/src/jmathlibtests/scripts/test_src_jmathlib_toolbox_general_sign5.java 2009-01-07 20:16:19 UTC (rev 649)
+++ JMathLib/trunk/src/jmathlibtests/scripts/test_src_jmathlib_toolbox_general_sign5.java 2009-01-07 20:16:46 UTC (rev 650)
@@ -1,33 +0,0 @@
-// 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"));
-
- }
-}
Deleted: JMathLib/trunk/src/jmathlibtests/scripts/test_src_jmathlib_toolbox_general_sign6.java
===================================================================
--- JMathLib/trunk/src/jmathlibtests/scripts/test_src_jmathlib_toolbox_general_sign6.java 2009-01-07 20:16:19 UTC (rev 649)
+++ JMathLib/trunk/src/jmathlibtests/scripts/test_src_jmathlib_toolbox_general_sign6.java 2009-01-07 20:16:46 UTC (rev 650)
@@ -1,33 +0,0 @@
-// 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....
[truncated message content] |
|
From: <st_...@us...> - 2009-01-08 19:42:18
|
Revision: 654
http://mathlib.svn.sourceforge.net/mathlib/?rev=654&view=rev
Author: st_mueller
Date: 2009-01-08 19:42:09 +0000 (Thu, 08 Jan 2009)
Log Message:
-----------
automated test case generation
Added Paths:
-----------
JMathLib/trunk/src/jmathlibtests/scripts/test_jmathlib_toolbox_general_int16.java
JMathLib/trunk/src/jmathlibtests/scripts/test_jmathlib_toolbox_general_int32.java
JMathLib/trunk/src/jmathlibtests/scripts/test_jmathlib_toolbox_general_int64.java
JMathLib/trunk/src/jmathlibtests/scripts/test_jmathlib_toolbox_general_int8.java
JMathLib/trunk/src/jmathlibtests/scripts/test_jmathlib_toolbox_general_uint16.java
JMathLib/trunk/src/jmathlibtests/scripts/test_jmathlib_toolbox_general_uint32.java
JMathLib/trunk/src/jmathlibtests/scripts/test_jmathlib_toolbox_general_uint8.java
Added: JMathLib/trunk/src/jmathlibtests/scripts/test_jmathlib_toolbox_general_int16.java
===================================================================
--- JMathLib/trunk/src/jmathlibtests/scripts/test_jmathlib_toolbox_general_int16.java (rev 0)
+++ JMathLib/trunk/src/jmathlibtests/scripts/test_jmathlib_toolbox_general_int16.java 2009-01-08 19:42:09 UTC (rev 654)
@@ -0,0 +1,34 @@
+// test_jmathlib_toolbox_general_int16
+package jmathlibtests.scripts;
+import jmathlib.core.interpreter.Interpreter;
+import jmathlib.tools.junit.framework.*;
+import jmathlibtests.Compare;
+
+public class test_jmathlib_toolbox_general_int16 extends TestCase {
+ protected Interpreter ml;
+
+ public test_jmathlib_toolbox_general_int16(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_jmathlib_toolbox_general_int16.class);
+ }
+
+ public void test_jmathlib_toolbox_general_int160()
+ {
+ ml.executeExpression("a=int16(8);");
+ ml.executeExpression("b=class(a);");
+ assertEquals( "int16", ml.getString("b"));
+
+ }
+}
Added: JMathLib/trunk/src/jmathlibtests/scripts/test_jmathlib_toolbox_general_int32.java
===================================================================
--- JMathLib/trunk/src/jmathlibtests/scripts/test_jmathlib_toolbox_general_int32.java (rev 0)
+++ JMathLib/trunk/src/jmathlibtests/scripts/test_jmathlib_toolbox_general_int32.java 2009-01-08 19:42:09 UTC (rev 654)
@@ -0,0 +1,34 @@
+// test_jmathlib_toolbox_general_int32
+package jmathlibtests.scripts;
+import jmathlib.core.interpreter.Interpreter;
+import jmathlib.tools.junit.framework.*;
+import jmathlibtests.Compare;
+
+public class test_jmathlib_toolbox_general_int32 extends TestCase {
+ protected Interpreter ml;
+
+ public test_jmathlib_toolbox_general_int32(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_jmathlib_toolbox_general_int32.class);
+ }
+
+ public void test_jmathlib_toolbox_general_int320()
+ {
+ ml.executeExpression("a=int32(8);");
+ ml.executeExpression("b=class(a);");
+ assertEquals( "int32", ml.getString("b"));
+
+ }
+}
Added: JMathLib/trunk/src/jmathlibtests/scripts/test_jmathlib_toolbox_general_int64.java
===================================================================
--- JMathLib/trunk/src/jmathlibtests/scripts/test_jmathlib_toolbox_general_int64.java (rev 0)
+++ JMathLib/trunk/src/jmathlibtests/scripts/test_jmathlib_toolbox_general_int64.java 2009-01-08 19:42:09 UTC (rev 654)
@@ -0,0 +1,34 @@
+// test_jmathlib_toolbox_general_int64
+package jmathlibtests.scripts;
+import jmathlib.core.interpreter.Interpreter;
+import jmathlib.tools.junit.framework.*;
+import jmathlibtests.Compare;
+
+public class test_jmathlib_toolbox_general_int64 extends TestCase {
+ protected Interpreter ml;
+
+ public test_jmathlib_toolbox_general_int64(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_jmathlib_toolbox_general_int64.class);
+ }
+
+ public void test_jmathlib_toolbox_general_int640()
+ {
+ ml.executeExpression("a=int64(8);");
+ ml.executeExpression("b=class(a);");
+ assertEquals( "int64", ml.getString("b"));
+
+ }
+}
Added: JMathLib/trunk/src/jmathlibtests/scripts/test_jmathlib_toolbox_general_int8.java
===================================================================
--- JMathLib/trunk/src/jmathlibtests/scripts/test_jmathlib_toolbox_general_int8.java (rev 0)
+++ JMathLib/trunk/src/jmathlibtests/scripts/test_jmathlib_toolbox_general_int8.java 2009-01-08 19:42:09 UTC (rev 654)
@@ -0,0 +1,34 @@
+// test_jmathlib_toolbox_general_int8
+package jmathlibtests.scripts;
+import jmathlib.core.interpreter.Interpreter;
+import jmathlib.tools.junit.framework.*;
+import jmathlibtests.Compare;
+
+public class test_jmathlib_toolbox_general_int8 extends TestCase {
+ protected Interpreter ml;
+
+ public test_jmathlib_toolbox_general_int8(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_jmathlib_toolbox_general_int8.class);
+ }
+
+ public void test_jmathlib_toolbox_general_int80()
+ {
+ ml.executeExpression("a=int8(88);");
+ ml.executeExpression("b=class(a);");
+ assertEquals( "int8", ml.getString("b"));
+
+ }
+}
Added: JMathLib/trunk/src/jmathlibtests/scripts/test_jmathlib_toolbox_general_uint16.java
===================================================================
--- JMathLib/trunk/src/jmathlibtests/scripts/test_jmathlib_toolbox_general_uint16.java (rev 0)
+++ JMathLib/trunk/src/jmathlibtests/scripts/test_jmathlib_toolbox_general_uint16.java 2009-01-08 19:42:09 UTC (rev 654)
@@ -0,0 +1,34 @@
+// test_jmathlib_toolbox_general_uint16
+package jmathlibtests.scripts;
+import jmathlib.core.interpreter.Interpreter;
+import jmathlib.tools.junit.framework.*;
+import jmathlibtests.Compare;
+
+public class test_jmathlib_toolbox_general_uint16 extends TestCase {
+ protected Interpreter ml;
+
+ public test_jmathlib_toolbox_general_uint16(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_jmathlib_toolbox_general_uint16.class);
+ }
+
+ public void test_jmathlib_toolbox_general_uint160()
+ {
+ ml.executeExpression("a=uint16(88);");
+ ml.executeExpression("b=class(a);");
+ assertEquals( "uint16", ml.getString("b"));
+
+ }
+}
Added: JMathLib/trunk/src/jmathlibtests/scripts/test_jmathlib_toolbox_general_uint32.java
===================================================================
--- JMathLib/trunk/src/jmathlibtests/scripts/test_jmathlib_toolbox_general_uint32.java (rev 0)
+++ JMathLib/trunk/src/jmathlibtests/scripts/test_jmathlib_toolbox_general_uint32.java 2009-01-08 19:42:09 UTC (rev 654)
@@ -0,0 +1,34 @@
+// test_jmathlib_toolbox_general_uint32
+package jmathlibtests.scripts;
+import jmathlib.core.interpreter.Interpreter;
+import jmathlib.tools.junit.framework.*;
+import jmathlibtests.Compare;
+
+public class test_jmathlib_toolbox_general_uint32 extends TestCase {
+ protected Interpreter ml;
+
+ public test_jmathlib_toolbox_general_uint32(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_jmathlib_toolbox_general_uint32.class);
+ }
+
+ public void test_jmathlib_toolbox_general_uint320()
+ {
+ ml.executeExpression("a=uint32(88);");
+ ml.executeExpression("b=class(a);");
+ assertEquals( "uint32", ml.getString("b"));
+
+ }
+}
Added: JMathLib/trunk/src/jmathlibtests/scripts/test_jmathlib_toolbox_general_uint8.java
===================================================================
--- JMathLib/trunk/src/jmathlibtests/scripts/test_jmathlib_toolbox_general_uint8.java (rev 0)
+++ JMathLib/trunk/src/jmathlibtests/scripts/test_jmathlib_toolbox_general_uint8.java 2009-01-08 19:42:09 UTC (rev 654)
@@ -0,0 +1,34 @@
+// test_jmathlib_toolbox_general_uint8
+package jmathlibtests.scripts;
+import jmathlib.core.interpreter.Interpreter;
+import jmathlib.tools.junit.framework.*;
+import jmathlibtests.Compare;
+
+public class test_jmathlib_toolbox_general_uint8 extends TestCase {
+ protected Interpreter ml;
+
+ public test_jmathlib_toolbox_general_uint8(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_jmathlib_toolbox_general_uint8.class);
+ }
+
+ public void test_jmathlib_toolbox_general_uint80()
+ {
+ ml.executeExpression("a=uint16(88);");
+ ml.executeExpression("b=class(a);");
+ assertEquals( "uint16", ml.getString("b"));
+
+ }
+}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <st_...@us...> - 2009-01-14 20:37:29
|
Revision: 687
http://mathlib.svn.sourceforge.net/mathlib/?rev=687&view=rev
Author: st_mueller
Date: 2009-01-14 20:37:21 +0000 (Wed, 14 Jan 2009)
Log Message:
-----------
code clean up. new JMathLibTestCase.java
Modified Paths:
--------------
JMathLib/trunk/src/jmathlibtests/scripts/test_jmathlib_toolbox_general_bitor.java
JMathLib/trunk/src/jmathlibtests/scripts/test_jmathlib_toolbox_general_int16.java
JMathLib/trunk/src/jmathlibtests/scripts/test_jmathlib_toolbox_general_int32.java
JMathLib/trunk/src/jmathlibtests/scripts/test_jmathlib_toolbox_general_int64.java
JMathLib/trunk/src/jmathlibtests/scripts/test_jmathlib_toolbox_general_int8.java
JMathLib/trunk/src/jmathlibtests/scripts/test_jmathlib_toolbox_general_sign.java
JMathLib/trunk/src/jmathlibtests/scripts/test_jmathlib_toolbox_general_uint16.java
JMathLib/trunk/src/jmathlibtests/scripts/test_jmathlib_toolbox_general_uint32.java
JMathLib/trunk/src/jmathlibtests/scripts/test_jmathlib_toolbox_general_uint8.java
JMathLib/trunk/src/jmathlibtests/scripts/test_jmathlib_toolbox_jmathlib_internal_e.java
JMathLib/trunk/src/jmathlibtests/scripts/test_jmathlib_toolbox_jmathlib_internal_i.java
JMathLib/trunk/src/jmathlibtests/scripts/test_jmathlib_toolbox_jmathlib_internal_j.java
JMathLib/trunk/src/jmathlibtests/scripts/test_jmathlib_toolbox_jmathlib_internal_minusminus.java
JMathLib/trunk/src/jmathlibtests/scripts/test_jmathlib_toolbox_jmathlib_internal_pi.java
JMathLib/trunk/src/jmathlibtests/scripts/test_jmathlib_toolbox_jmathlib_internal_plusplus.java
Modified: JMathLib/trunk/src/jmathlibtests/scripts/test_jmathlib_toolbox_general_bitor.java
===================================================================
--- JMathLib/trunk/src/jmathlibtests/scripts/test_jmathlib_toolbox_general_bitor.java 2009-01-14 20:35:47 UTC (rev 686)
+++ JMathLib/trunk/src/jmathlibtests/scripts/test_jmathlib_toolbox_general_bitor.java 2009-01-14 20:37:21 UTC (rev 687)
@@ -4,8 +4,7 @@
import jmathlib.tools.junit.framework.*;
import jmathlibtests.Compare;
-public class test_jmathlib_toolbox_general_bitor extends TestCase {
- protected Interpreter ml;
+public class test_jmathlib_toolbox_general_bitor extends JMathLibTestCase {
public test_jmathlib_toolbox_general_bitor(String name) {
super(name);
@@ -13,12 +12,6 @@
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_jmathlib_toolbox_general_bitor.class);
Modified: JMathLib/trunk/src/jmathlibtests/scripts/test_jmathlib_toolbox_general_int16.java
===================================================================
--- JMathLib/trunk/src/jmathlibtests/scripts/test_jmathlib_toolbox_general_int16.java 2009-01-14 20:35:47 UTC (rev 686)
+++ JMathLib/trunk/src/jmathlibtests/scripts/test_jmathlib_toolbox_general_int16.java 2009-01-14 20:37:21 UTC (rev 687)
@@ -4,8 +4,7 @@
import jmathlib.tools.junit.framework.*;
import jmathlibtests.Compare;
-public class test_jmathlib_toolbox_general_int16 extends TestCase {
- protected Interpreter ml;
+public class test_jmathlib_toolbox_general_int16 extends JMathLibTestCase {
public test_jmathlib_toolbox_general_int16(String name) {
super(name);
@@ -13,12 +12,6 @@
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_jmathlib_toolbox_general_int16.class);
Modified: JMathLib/trunk/src/jmathlibtests/scripts/test_jmathlib_toolbox_general_int32.java
===================================================================
--- JMathLib/trunk/src/jmathlibtests/scripts/test_jmathlib_toolbox_general_int32.java 2009-01-14 20:35:47 UTC (rev 686)
+++ JMathLib/trunk/src/jmathlibtests/scripts/test_jmathlib_toolbox_general_int32.java 2009-01-14 20:37:21 UTC (rev 687)
@@ -4,8 +4,7 @@
import jmathlib.tools.junit.framework.*;
import jmathlibtests.Compare;
-public class test_jmathlib_toolbox_general_int32 extends TestCase {
- protected Interpreter ml;
+public class test_jmathlib_toolbox_general_int32 extends JMathLibTestCase {
public test_jmathlib_toolbox_general_int32(String name) {
super(name);
@@ -13,12 +12,6 @@
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_jmathlib_toolbox_general_int32.class);
Modified: JMathLib/trunk/src/jmathlibtests/scripts/test_jmathlib_toolbox_general_int64.java
===================================================================
--- JMathLib/trunk/src/jmathlibtests/scripts/test_jmathlib_toolbox_general_int64.java 2009-01-14 20:35:47 UTC (rev 686)
+++ JMathLib/trunk/src/jmathlibtests/scripts/test_jmathlib_toolbox_general_int64.java 2009-01-14 20:37:21 UTC (rev 687)
@@ -4,8 +4,7 @@
import jmathlib.tools.junit.framework.*;
import jmathlibtests.Compare;
-public class test_jmathlib_toolbox_general_int64 extends TestCase {
- protected Interpreter ml;
+public class test_jmathlib_toolbox_general_int64 extends JMathLibTestCase {
public test_jmathlib_toolbox_general_int64(String name) {
super(name);
@@ -13,12 +12,6 @@
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_jmathlib_toolbox_general_int64.class);
Modified: JMathLib/trunk/src/jmathlibtests/scripts/test_jmathlib_toolbox_general_int8.java
===================================================================
--- JMathLib/trunk/src/jmathlibtests/scripts/test_jmathlib_toolbox_general_int8.java 2009-01-14 20:35:47 UTC (rev 686)
+++ JMathLib/trunk/src/jmathlibtests/scripts/test_jmathlib_toolbox_general_int8.java 2009-01-14 20:37:21 UTC (rev 687)
@@ -4,8 +4,7 @@
import jmathlib.tools.junit.framework.*;
import jmathlibtests.Compare;
-public class test_jmathlib_toolbox_general_int8 extends TestCase {
- protected Interpreter ml;
+public class test_jmathlib_toolbox_general_int8 extends JMathLibTestCase {
public test_jmathlib_toolbox_general_int8(String name) {
super(name);
@@ -13,12 +12,6 @@
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_jmathlib_toolbox_general_int8.class);
Modified: JMathLib/trunk/src/jmathlibtests/scripts/test_jmathlib_toolbox_general_sign.java
===================================================================
--- JMathLib/trunk/src/jmathlibtests/scripts/test_jmathlib_toolbox_general_sign.java 2009-01-14 20:35:47 UTC (rev 686)
+++ JMathLib/trunk/src/jmathlibtests/scripts/test_jmathlib_toolbox_general_sign.java 2009-01-14 20:37:21 UTC (rev 687)
@@ -4,8 +4,7 @@
import jmathlib.tools.junit.framework.*;
import jmathlibtests.Compare;
-public class test_jmathlib_toolbox_general_sign extends TestCase {
- protected Interpreter ml;
+public class test_jmathlib_toolbox_general_sign extends JMathLibTestCase {
public test_jmathlib_toolbox_general_sign(String name) {
super(name);
@@ -13,12 +12,6 @@
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_jmathlib_toolbox_general_sign.class);
Modified: JMathLib/trunk/src/jmathlibtests/scripts/test_jmathlib_toolbox_general_uint16.java
===================================================================
--- JMathLib/trunk/src/jmathlibtests/scripts/test_jmathlib_toolbox_general_uint16.java 2009-01-14 20:35:47 UTC (rev 686)
+++ JMathLib/trunk/src/jmathlibtests/scripts/test_jmathlib_toolbox_general_uint16.java 2009-01-14 20:37:21 UTC (rev 687)
@@ -4,8 +4,7 @@
import jmathlib.tools.junit.framework.*;
import jmathlibtests.Compare;
-public class test_jmathlib_toolbox_general_uint16 extends TestCase {
- protected Interpreter ml;
+public class test_jmathlib_toolbox_general_uint16 extends JMathLibTestCase {
public test_jmathlib_toolbox_general_uint16(String name) {
super(name);
@@ -13,12 +12,6 @@
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_jmathlib_toolbox_general_uint16.class);
Modified: JMathLib/trunk/src/jmathlibtests/scripts/test_jmathlib_toolbox_general_uint32.java
===================================================================
--- JMathLib/trunk/src/jmathlibtests/scripts/test_jmathlib_toolbox_general_uint32.java 2009-01-14 20:35:47 UTC (rev 686)
+++ JMathLib/trunk/src/jmathlibtests/scripts/test_jmathlib_toolbox_general_uint32.java 2009-01-14 20:37:21 UTC (rev 687)
@@ -4,8 +4,7 @@
import jmathlib.tools.junit.framework.*;
import jmathlibtests.Compare;
-public class test_jmathlib_toolbox_general_uint32 extends TestCase {
- protected Interpreter ml;
+public class test_jmathlib_toolbox_general_uint32 extends JMathLibTestCase {
public test_jmathlib_toolbox_general_uint32(String name) {
super(name);
@@ -13,12 +12,6 @@
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_jmathlib_toolbox_general_uint32.class);
Modified: JMathLib/trunk/src/jmathlibtests/scripts/test_jmathlib_toolbox_general_uint8.java
===================================================================
--- JMathLib/trunk/src/jmathlibtests/scripts/test_jmathlib_toolbox_general_uint8.java 2009-01-14 20:35:47 UTC (rev 686)
+++ JMathLib/trunk/src/jmathlibtests/scripts/test_jmathlib_toolbox_general_uint8.java 2009-01-14 20:37:21 UTC (rev 687)
@@ -4,8 +4,7 @@
import jmathlib.tools.junit.framework.*;
import jmathlibtests.Compare;
-public class test_jmathlib_toolbox_general_uint8 extends TestCase {
- protected Interpreter ml;
+public class test_jmathlib_toolbox_general_uint8 extends JMathLibTestCase {
public test_jmathlib_toolbox_general_uint8(String name) {
super(name);
@@ -13,12 +12,6 @@
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_jmathlib_toolbox_general_uint8.class);
Modified: JMathLib/trunk/src/jmathlibtests/scripts/test_jmathlib_toolbox_jmathlib_internal_e.java
===================================================================
--- JMathLib/trunk/src/jmathlibtests/scripts/test_jmathlib_toolbox_jmathlib_internal_e.java 2009-01-14 20:35:47 UTC (rev 686)
+++ JMathLib/trunk/src/jmathlibtests/scripts/test_jmathlib_toolbox_jmathlib_internal_e.java 2009-01-14 20:37:21 UTC (rev 687)
@@ -4,8 +4,7 @@
import jmathlib.tools.junit.framework.*;
import jmathlibtests.Compare;
-public class test_jmathlib_toolbox_jmathlib_internal_e extends TestCase {
- protected Interpreter ml;
+public class test_jmathlib_toolbox_jmathlib_internal_e extends JMathLibTestCase {
public test_jmathlib_toolbox_jmathlib_internal_e(String name) {
super(name);
@@ -13,12 +12,6 @@
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_jmathlib_toolbox_jmathlib_internal_e.class);
Modified: JMathLib/trunk/src/jmathlibtests/scripts/test_jmathlib_toolbox_jmathlib_internal_i.java
===================================================================
--- JMathLib/trunk/src/jmathlibtests/scripts/test_jmathlib_toolbox_jmathlib_internal_i.java 2009-01-14 20:35:47 UTC (rev 686)
+++ JMathLib/trunk/src/jmathlibtests/scripts/test_jmathlib_toolbox_jmathlib_internal_i.java 2009-01-14 20:37:21 UTC (rev 687)
@@ -4,8 +4,7 @@
import jmathlib.tools.junit.framework.*;
import jmathlibtests.Compare;
-public class test_jmathlib_toolbox_jmathlib_internal_i extends TestCase {
- protected Interpreter ml;
+public class test_jmathlib_toolbox_jmathlib_internal_i extends JMathLibTestCase {
public test_jmathlib_toolbox_jmathlib_internal_i(String name) {
super(name);
@@ -13,12 +12,6 @@
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_jmathlib_toolbox_jmathlib_internal_i.class);
Modified: JMathLib/trunk/src/jmathlibtests/scripts/test_jmathlib_toolbox_jmathlib_internal_j.java
===================================================================
--- JMathLib/trunk/src/jmathlibtests/scripts/test_jmathlib_toolbox_jmathlib_internal_j.java 2009-01-14 20:35:47 UTC (rev 686)
+++ JMathLib/trunk/src/jmathlibtests/scripts/test_jmathlib_toolbox_jmathlib_internal_j.java 2009-01-14 20:37:21 UTC (rev 687)
@@ -4,8 +4,7 @@
import jmathlib.tools.junit.framework.*;
import jmathlibtests.Compare;
-public class test_jmathlib_toolbox_jmathlib_internal_j extends TestCase {
- protected Interpreter ml;
+public class test_jmathlib_toolbox_jmathlib_internal_j extends JMathLibTestCase {
public test_jmathlib_toolbox_jmathlib_internal_j(String name) {
super(name);
@@ -13,12 +12,6 @@
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_jmathlib_toolbox_jmathlib_internal_j.class);
Modified: JMathLib/trunk/src/jmathlibtests/scripts/test_jmathlib_toolbox_jmathlib_internal_minusminus.java
===================================================================
--- JMathLib/trunk/src/jmathlibtests/scripts/test_jmathlib_toolbox_jmathlib_internal_minusminus.java 2009-01-14 20:35:47 UTC (rev 686)
+++ JMathLib/trunk/src/jmathlibtests/scripts/test_jmathlib_toolbox_jmathlib_internal_minusminus.java 2009-01-14 20:37:21 UTC (rev 687)
@@ -4,8 +4,7 @@
import jmathlib.tools.junit.framework.*;
import jmathlibtests.Compare;
-public class test_jmathlib_toolbox_jmathlib_internal_minusminus extends TestCase {
- protected Interpreter ml;
+public class test_jmathlib_toolbox_jmathlib_internal_minusminus extends JMathLibTestCase {
public test_jmathlib_toolbox_jmathlib_internal_minusminus(String name) {
super(name);
@@ -13,12 +12,6 @@
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_jmathlib_toolbox_jmathlib_internal_minusminus.class);
Modified: JMathLib/trunk/src/jmathlibtests/scripts/test_jmathlib_toolbox_jmathlib_internal_pi.java
===================================================================
--- JMathLib/trunk/src/jmathlibtests/scripts/test_jmathlib_toolbox_jmathlib_internal_pi.java 2009-01-14 20:35:47 UTC (rev 686)
+++ JMathLib/trunk/src/jmathlibtests/scripts/test_jmathlib_toolbox_jmathlib_internal_pi.java 2009-01-14 20:37:21 UTC (rev 687)
@@ -4,8 +4,7 @@
import jmathlib.tools.junit.framework.*;
import jmathlibtests.Compare;
-public class test_jmathlib_toolbox_jmathlib_internal_pi extends TestCase {
- protected Interpreter ml;
+public class test_jmathlib_toolbox_jmathlib_internal_pi extends JMathLibTestCase {
public test_jmathlib_toolbox_jmathlib_internal_pi(String name) {
super(name);
@@ -13,12 +12,6 @@
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_jmathlib_toolbox_jmathlib_internal_pi.class);
Modified: JMathLib/trunk/src/jmathlibtests/scripts/test_jmathlib_toolbox_jmathlib_internal_plusplus.java
===================================================================
--- JMathLib/trunk/src/jmathlibtests/scripts/test_jmathlib_toolbox_jmathlib_internal_plusplus.java 2009-01-14 20:35:47 UTC (rev 686)
+++ JMathLib/trunk/src/jmathlibtests/scripts/test_jmathlib_toolbox_jmathlib_internal_plusplus.java 2009-01-14 20:37:21 UTC (rev 687)
@@ -4,8 +4,7 @@
import jmathlib.tools.junit.framework.*;
import jmathlibtests.Compare;
-public class test_jmathlib_toolbox_jmathlib_internal_plusplus extends TestCase {
- protected Interpreter ml;
+public class test_jmathlib_toolbox_jmathlib_internal_plusplus extends JMathLibTestCase {
public test_jmathlib_toolbox_jmathlib_internal_plusplus(String name) {
super(name);
@@ -13,12 +12,6 @@
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_jmathlib_toolbox_jmathlib_internal_plusplus.class);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|