* Use functions for test for better debugability.
authortwisti <none@none>
Thu, 30 Jun 2005 20:54:41 +0000 (20:54 +0000)
committertwisti <none@none>
Thu, 30 Jun 2005 20:54:41 +0000 (20:54 +0000)
tests/native/testarguments.java

index 8cbee2ddcbac32f27056978cc95670df0b67e52e..b603d68069aeffa0218bba1438562737257dc1e7 100644 (file)
@@ -26,7 +26,7 @@
 
    Authors: Christian Thalinger
 
-   $Id: testarguments.java 2721 2005-06-16 11:49:27Z twisti $
+   $Id: testarguments.java 2882 2005-06-30 20:54:41Z twisti $
 
 */
 
@@ -57,6 +57,13 @@ public class testarguments {
 
         System.loadLibrary("testarguments");
 
+        itest();
+        ltest();
+        ftest();
+        dtest();
+    }
+
+    static void itest() {
         pln("testing int --------------------------------------------------");
 
         isub(i(), i(), i(), i(), i(),
@@ -64,7 +71,9 @@ public class testarguments {
              i(), i(), i(), i(), i());
 
         pln();
+    }
 
+    static void ltest() {
         pln("testing long -------------------------------------------------");
 
         lsub(l(), l(), l(), l(), l(),
@@ -72,7 +81,9 @@ public class testarguments {
              l(), l(), l(), l(), l());
 
         pln();
+    }
 
+    static void ftest() {
         pln("testing float ------------------------------------------------");
 
         fsub(f(), f(), f(), f(), f(),
@@ -80,18 +91,14 @@ public class testarguments {
              f(), f(), f(), f(), f());
 
         pln();
+    }
 
+    static void dtest() {
         pln("testing double -----------------------------------------------");
 
         dsub(d(), d(), d(), d(), d(),
              d(), d(), d(), d(), d(),
              d(), d(), d(), d(), d());
-
-//          try {
-//              ndsub(d(), d(), d(), d(), d(), d(), d(), d(), d(), d());
-//          } catch (LinkageError e) {
-//              System.out.println("catched");
-//          }
     }