[Mathlib-commitlog] SF.net SVN: mathlib:[654] JMathLib/trunk/src/jmathlibtests/scripts
Status: Beta
Brought to you by:
st_mueller
|
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.
|