[Swift-commit] r5808 - trunk/tests/documentation/tutorial

davidk at ci.uchicago.edu davidk at ci.uchicago.edu
Fri Jun 8 17:00:59 CDT 2012


Author: davidk
Date: 2012-06-08 17:00:59 -0500 (Fri, 08 Jun 2012)
New Revision: 5808

Removed:
   trunk/tests/documentation/tutorial/sequential_iteration.foldout0000.expected
   trunk/tests/documentation/tutorial/sequential_iteration.foldout0001.expected
   trunk/tests/documentation/tutorial/sequential_iteration.foldout0002.expected
   trunk/tests/documentation/tutorial/sequential_iteration.foldout0003.expected
   trunk/tests/documentation/tutorial/swift.properties
Modified:
   trunk/tests/documentation/tutorial/sequential_iteration.clean.sh
   trunk/tests/documentation/tutorial/sequential_iteration.swift
Log:
use the updated sequential iteration script from the tutorial


Modified: trunk/tests/documentation/tutorial/sequential_iteration.clean.sh
===================================================================
--- trunk/tests/documentation/tutorial/sequential_iteration.clean.sh	2012-06-08 21:13:21 UTC (rev 5807)
+++ trunk/tests/documentation/tutorial/sequential_iteration.clean.sh	2012-06-08 22:00:59 UTC (rev 5808)
@@ -1,4 +1,4 @@
 #!/bin/bash
 set -x
-rm -rf sequential_iteration-* sequential_iteration.kml sequential_iteration.xml foldout* || exit 1
+rm -rf sequential_iteration-* sequential_iteration.kml sequential_iteration.xml || exit 1
 exit 0

Deleted: trunk/tests/documentation/tutorial/sequential_iteration.foldout0000.expected
===================================================================
--- trunk/tests/documentation/tutorial/sequential_iteration.foldout0000.expected	2012-06-08 21:13:21 UTC (rev 5807)
+++ trunk/tests/documentation/tutorial/sequential_iteration.foldout0000.expected	2012-06-08 22:00:59 UTC (rev 5808)
@@ -1 +0,0 @@
-793578934574893

Deleted: trunk/tests/documentation/tutorial/sequential_iteration.foldout0001.expected
===================================================================
--- trunk/tests/documentation/tutorial/sequential_iteration.foldout0001.expected	2012-06-08 21:13:21 UTC (rev 5807)
+++ trunk/tests/documentation/tutorial/sequential_iteration.foldout0001.expected	2012-06-08 22:00:59 UTC (rev 5808)
@@ -1 +0,0 @@
-16
\ No newline at end of file

Deleted: trunk/tests/documentation/tutorial/sequential_iteration.foldout0002.expected
===================================================================
--- trunk/tests/documentation/tutorial/sequential_iteration.foldout0002.expected	2012-06-08 21:13:21 UTC (rev 5807)
+++ trunk/tests/documentation/tutorial/sequential_iteration.foldout0002.expected	2012-06-08 22:00:59 UTC (rev 5808)
@@ -1 +0,0 @@
-2
\ No newline at end of file

Deleted: trunk/tests/documentation/tutorial/sequential_iteration.foldout0003.expected
===================================================================
--- trunk/tests/documentation/tutorial/sequential_iteration.foldout0003.expected	2012-06-08 21:13:21 UTC (rev 5807)
+++ trunk/tests/documentation/tutorial/sequential_iteration.foldout0003.expected	2012-06-08 22:00:59 UTC (rev 5808)
@@ -1 +0,0 @@
-1
\ No newline at end of file

Modified: trunk/tests/documentation/tutorial/sequential_iteration.swift
===================================================================
--- trunk/tests/documentation/tutorial/sequential_iteration.swift	2012-06-08 21:13:21 UTC (rev 5807)
+++ trunk/tests/documentation/tutorial/sequential_iteration.swift	2012-06-08 22:00:59 UTC (rev 5808)
@@ -1,18 +1,12 @@
-type counterfile;  
-  
-app (counterfile t) echo(string m) {   
-    echo m stdout=@filename(t);  
-}  
-  
-app (counterfile t) countstep(counterfile i) {  
-    wcl @filename(i) @filename(t);  
-}  
-  
-counterfile a[]  <simple_mapper;prefix="sequential_iteration.foldout">;  
-  
-a[0] = echo("793578934574893");  
-  
-iterate v {  
-  a[v+1] = countstep(a[v]);  
- trace("extract int value ", at extractint(a[v+1]));  
-} until (@extractint(a[v+1]) <= 1);  
+
+string alphabet[];
+alphabet[0] = "a";
+alphabet[1] = "b";
+alphabet[2] = "c";
+alphabet[3] = "d";
+alphabet[4] = "e";
+
+iterate i  
+{
+   tracef("Letter %i is: %s\n", i, alphabet[i]);
+}  until(i == 5);

Deleted: trunk/tests/documentation/tutorial/swift.properties
===================================================================
--- trunk/tests/documentation/tutorial/swift.properties	2012-06-08 21:13:21 UTC (rev 5807)
+++ trunk/tests/documentation/tutorial/swift.properties	2012-06-08 22:00:59 UTC (rev 5808)
@@ -1,7 +0,0 @@
-wrapperlog.always.transfer=true
-sitedir.keep=true
-execution.retries=0
-lazy.errors=false
-status.mode=provider
-use.provider.staging=false
-provider.staging.pin.swiftfiles=false




More information about the Swift-commit mailing list