[Swift-commit] r2348 - trunk/tests/language-behaviour

noreply at svn.ci.uchicago.edu noreply at svn.ci.uchicago.edu
Thu Nov 27 15:44:06 CST 2008


Author: benc
Date: 2008-11-27 15:44:04 -0600 (Thu, 27 Nov 2008)
New Revision: 2348

Added:
   trunk/tests/language-behaviour/07513-fixed-array-mapper-filename.real.out.expected
   trunk/tests/language-behaviour/07513-fixed-array-mapper-filename.swift
Log:
test of fixed-array-mapper with @filename and filenames in a separate variable

Added: trunk/tests/language-behaviour/07513-fixed-array-mapper-filename.real.out.expected
===================================================================
--- trunk/tests/language-behaviour/07513-fixed-array-mapper-filename.real.out.expected	                        (rev 0)
+++ trunk/tests/language-behaviour/07513-fixed-array-mapper-filename.real.out.expected	2008-11-27 21:44:04 UTC (rev 2348)
@@ -0,0 +1 @@
+q r s t

Added: trunk/tests/language-behaviour/07513-fixed-array-mapper-filename.swift
===================================================================
--- trunk/tests/language-behaviour/07513-fixed-array-mapper-filename.swift	                        (rev 0)
+++ trunk/tests/language-behaviour/07513-fixed-array-mapper-filename.swift	2008-11-27 21:44:04 UTC (rev 2348)
@@ -0,0 +1,19 @@
+type messagefile;
+
+(messagefile t) write(string s) { 
+    app {
+        echo s stdout=@filename(t);
+    }
+}
+
+string fns="q r s t";
+
+messagefile outfile[] <fixed_array_mapper; files=fns>;
+messagefile realoutput <"07513-fixed-array-mapper-filename.real.out">;
+
+string fn;
+
+fn = @filename(outfile);
+
+realoutput = write(fn);
+




More information about the Swift-commit mailing list