[Swift-commit] r2497 - trunk/tests/language-behaviour
noreply at svn.ci.uchicago.edu
noreply at svn.ci.uchicago.edu
Thu Feb 5 08:52:04 CST 2009
Author: benc
Date: 2009-02-05 08:52:03 -0600 (Thu, 05 Feb 2009)
New Revision: 2497
Added:
trunk/tests/language-behaviour/07514-fixed-array-mapper-filenames.a.in
trunk/tests/language-behaviour/07514-fixed-array-mapper-filenames.b.in
trunk/tests/language-behaviour/07514-fixed-array-mapper-filenames.real.out.expected
trunk/tests/language-behaviour/07514-fixed-array-mapper-filenames.swift
Log:
test for @filenames
Added: trunk/tests/language-behaviour/07514-fixed-array-mapper-filenames.a.in
===================================================================
--- trunk/tests/language-behaviour/07514-fixed-array-mapper-filenames.a.in (rev 0)
+++ trunk/tests/language-behaviour/07514-fixed-array-mapper-filenames.a.in 2009-02-05 14:52:03 UTC (rev 2497)
@@ -0,0 +1 @@
+foo
Added: trunk/tests/language-behaviour/07514-fixed-array-mapper-filenames.b.in
===================================================================
--- trunk/tests/language-behaviour/07514-fixed-array-mapper-filenames.b.in (rev 0)
+++ trunk/tests/language-behaviour/07514-fixed-array-mapper-filenames.b.in 2009-02-05 14:52:03 UTC (rev 2497)
@@ -0,0 +1 @@
+foo
Added: trunk/tests/language-behaviour/07514-fixed-array-mapper-filenames.real.out.expected
===================================================================
--- trunk/tests/language-behaviour/07514-fixed-array-mapper-filenames.real.out.expected (rev 0)
+++ trunk/tests/language-behaviour/07514-fixed-array-mapper-filenames.real.out.expected 2009-02-05 14:52:03 UTC (rev 2497)
@@ -0,0 +1 @@
+07514-fixed-array-mapper-filenames.a.in 07514-fixed-array-mapper-filenames.b.in
Added: trunk/tests/language-behaviour/07514-fixed-array-mapper-filenames.swift
===================================================================
--- trunk/tests/language-behaviour/07514-fixed-array-mapper-filenames.swift (rev 0)
+++ trunk/tests/language-behaviour/07514-fixed-array-mapper-filenames.swift 2009-02-05 14:52:03 UTC (rev 2497)
@@ -0,0 +1,17 @@
+type messagefile;
+
+(messagefile t) write(messagefile s[]) {
+ app {
+ echo @filenames(s) stdout=@filename(t);
+ }
+}
+
+string fns="07514-fixed-array-mapper-filenames.a.in 07514-fixed-array-mapper-filenames.b.in";
+
+messagefile outfile[] <fixed_array_mapper; files=fns>;
+messagefile realoutput <"07514-fixed-array-mapper-filenames.real.out">;
+
+string fn;
+
+realoutput = write(outfile);
+
More information about the Swift-commit
mailing list