[Swift-commit] r6361 - trunk/tests/language-behaviour/mappers

ketan at ci.uchicago.edu ketan at ci.uchicago.edu
Sat Mar 9 16:04:21 CST 2013


Author: ketan
Date: 2013-03-09 16:04:21 -0600 (Sat, 09 Mar 2013)
New Revision: 6361

Added:
   trunk/tests/language-behaviour/mappers/076-structured-regexp-mapper.b0.out.expected
   trunk/tests/language-behaviour/mappers/076-structured-regexp-mapper.b1.out.expected
Removed:
   trunk/tests/language-behaviour/mappers/076-structured-regexp-mapper.b.out.expected
Modified:
   trunk/tests/language-behaviour/mappers/076-structured-regexp-mapper.swift
Log:
update structured regexp mapper test

Deleted: trunk/tests/language-behaviour/mappers/076-structured-regexp-mapper.b.out.expected
===================================================================
--- trunk/tests/language-behaviour/mappers/076-structured-regexp-mapper.b.out.expected	2013-03-09 21:29:32 UTC (rev 6360)
+++ trunk/tests/language-behaviour/mappers/076-structured-regexp-mapper.b.out.expected	2013-03-09 22:04:21 UTC (rev 6361)
@@ -1 +0,0 @@
-Hello, world!

Added: trunk/tests/language-behaviour/mappers/076-structured-regexp-mapper.b0.out.expected
===================================================================
--- trunk/tests/language-behaviour/mappers/076-structured-regexp-mapper.b0.out.expected	                        (rev 0)
+++ trunk/tests/language-behaviour/mappers/076-structured-regexp-mapper.b0.out.expected	2013-03-09 22:04:21 UTC (rev 6361)
@@ -0,0 +1 @@
+Hello, world!

Added: trunk/tests/language-behaviour/mappers/076-structured-regexp-mapper.b1.out.expected
===================================================================
--- trunk/tests/language-behaviour/mappers/076-structured-regexp-mapper.b1.out.expected	                        (rev 0)
+++ trunk/tests/language-behaviour/mappers/076-structured-regexp-mapper.b1.out.expected	2013-03-09 22:04:21 UTC (rev 6361)
@@ -0,0 +1 @@
+Hello, world!

Modified: trunk/tests/language-behaviour/mappers/076-structured-regexp-mapper.swift
===================================================================
--- trunk/tests/language-behaviour/mappers/076-structured-regexp-mapper.swift	2013-03-09 21:29:32 UTC (rev 6360)
+++ trunk/tests/language-behaviour/mappers/076-structured-regexp-mapper.swift	2013-03-09 22:04:21 UTC (rev 6361)
@@ -12,14 +12,14 @@
     }
 }
 
+messagefile outfile[] <simple_mapper; prefix="076-structured-regexp-mapper.a",suffix=".out", padding=1>;
 
-messagefile outfile <"076-structured-regexp-mapper.a.out">;
-messagefile outfile2 <structured_regexp_mapper;
-    source=outfile,
-    match="(.*)per.a(.*)",
-    transform="\\1per.b\\2"
->;
+messagefile outfile2[] <structured_regexp_mapper;
+    source=outfile, match="(.*)per.a(.*)",
+    transform="\\1per.b\\2" >;
 
-outfile = greeting();
+foreach i in [0:1]{
+ outfile[i] = greeting();
+ outfile2[i] = greeting2(outfile[i]);
+}
 
-outfile2 = greeting2(outfile);




More information about the Swift-commit mailing list