[Swift-commit] r5266 - in trunk/tests: . functions

davidk at ci.uchicago.edu davidk at ci.uchicago.edu
Mon Oct 31 14:32:08 CDT 2011


Author: davidk
Date: 2011-10-31 14:32:08 -0500 (Mon, 31 Oct 2011)
New Revision: 5266

Added:
   trunk/tests/functions/401-java-sin.out.expected
   trunk/tests/functions/401-java-sin.swift
Modified:
   trunk/tests/suite.sh
Log:
Added @java test
Fix for .repeat


Added: trunk/tests/functions/401-java-sin.out.expected
===================================================================
--- trunk/tests/functions/401-java-sin.out.expected	                        (rev 0)
+++ trunk/tests/functions/401-java-sin.out.expected	2011-10-31 19:32:08 UTC (rev 5266)
@@ -0,0 +1 @@
+0.479425538604203

Added: trunk/tests/functions/401-java-sin.swift
===================================================================
--- trunk/tests/functions/401-java-sin.swift	                        (rev 0)
+++ trunk/tests/functions/401-java-sin.swift	2011-10-31 19:32:08 UTC (rev 5266)
@@ -0,0 +1,10 @@
+type file;
+
+app (file result) sin(float x2) { 
+    echo @strcat(@java("java.lang.Math", "sin", x2)) stdout=@filename(result);
+}
+
+float x = 0.5;
+
+file output<"401-java-sin.out">;
+output = sin(x);

Modified: trunk/tests/suite.sh
===================================================================
--- trunk/tests/suite.sh	2011-10-31 19:28:27 UTC (rev 5265)
+++ trunk/tests/suite.sh	2011-10-31 19:32:08 UTC (rev 5266)
@@ -1107,7 +1107,9 @@
     TESTLINK="$TESTNAMEDIR/$TESTNAME"
     if [ -f "$GROUP/$SCRIPT_BASENAME.repeat" ]; then
       ITERS_LOCAL=`cat $GROUP/$SCRIPT_BASENAME.repeat`
-    fi
+    else
+       ITERS_LOCAL=1
+    fi 
 
     for (( i=0; $i<$ITERS_LOCAL; i=$i+1 )); do
       HOURMINSEC=$( date +"%H%M%S" )




More information about the Swift-commit mailing list