[Swift-commit] r6357 - branches/release-0.93/tests/language-behaviour/mappers

ketan at ci.uchicago.edu ketan at ci.uchicago.edu
Fri Mar 8 23:46:40 CST 2013


Author: ketan
Date: 2013-03-08 23:46:40 -0600 (Fri, 08 Mar 2013)
New Revision: 6357

Added:
   branches/release-0.93/tests/language-behaviour/mappers/077-regexpmapper-input.in
Modified:
   branches/release-0.93/tests/language-behaviour/mappers/077-regexp-mapper.swift
Log:
improve regexp mapper test

Modified: branches/release-0.93/tests/language-behaviour/mappers/077-regexp-mapper.swift
===================================================================
--- branches/release-0.93/tests/language-behaviour/mappers/077-regexp-mapper.swift	2013-03-09 03:03:32 UTC (rev 6356)
+++ branches/release-0.93/tests/language-behaviour/mappers/077-regexp-mapper.swift	2013-03-09 05:46:40 UTC (rev 6357)
@@ -6,10 +6,10 @@
     }
 }
 
-messagefile outfile <regexp_mapper;
-       source="outfoo",
-       match="(...)(.*)",
-       transform="077-regexp-mapper.\\2.\\1">;
+messagefile infile <"077-regexpmapper-input.in">;
 
+messagefile outfile <regexp_mapper; source="infile",
+       match="(.*)in", transform=@strcat("077-regexp-mapper.foo.","\\1out")>;
+
 outfile = greeting();
 

Added: branches/release-0.93/tests/language-behaviour/mappers/077-regexpmapper-input.in
===================================================================
--- branches/release-0.93/tests/language-behaviour/mappers/077-regexpmapper-input.in	                        (rev 0)
+++ branches/release-0.93/tests/language-behaviour/mappers/077-regexpmapper-input.in	2013-03-09 05:46:40 UTC (rev 6357)
@@ -0,0 +1 @@
+garuda




More information about the Swift-commit mailing list