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

noreply at svn.ci.uchicago.edu noreply at svn.ci.uchicago.edu
Wed Mar 24 16:59:25 CDT 2010


Author: hategan
Date: 2010-03-24 16:59:25 -0500 (Wed, 24 Mar 2010)
New Revision: 3266

Added:
   trunk/tests/language-behaviour/T078-simplemapper-nosuffix.swift
   trunk/tests/language-behaviour/T078-simplemapper-nosuffix_nodot.out.expected
   trunk/tests/language-behaviour/T079-simplemapper-nosuffix_exception.swift
Log:
tests for noauto patch

Added: trunk/tests/language-behaviour/T078-simplemapper-nosuffix.swift
===================================================================
--- trunk/tests/language-behaviour/T078-simplemapper-nosuffix.swift	                        (rev 0)
+++ trunk/tests/language-behaviour/T078-simplemapper-nosuffix.swift	2010-03-24 21:59:25 UTC (rev 3266)
@@ -0,0 +1,17 @@
+// this one is like test 073-simplemapper, but doesn't 
+// add the missing dot in front of the suffix
+
+type messagefile;
+
+(messagefile t) write() { 
+    app {
+        echo @filename(t) stdout=@filename(t);
+    }
+}
+
+messagefile outfile <simple_mapper;
+                     prefix="T078-simplemapper-nosuffix", noauto="true",
+                     suffix="_nodot.out">;
+
+outfile = write();
+

Added: trunk/tests/language-behaviour/T078-simplemapper-nosuffix_nodot.out.expected
===================================================================
--- trunk/tests/language-behaviour/T078-simplemapper-nosuffix_nodot.out.expected	                        (rev 0)
+++ trunk/tests/language-behaviour/T078-simplemapper-nosuffix_nodot.out.expected	2010-03-24 21:59:25 UTC (rev 3266)
@@ -0,0 +1 @@
+T078-simplemapper-nosuffix_nodot.out

Added: trunk/tests/language-behaviour/T079-simplemapper-nosuffix_exception.swift
===================================================================
--- trunk/tests/language-behaviour/T079-simplemapper-nosuffix_exception.swift	                        (rev 0)
+++ trunk/tests/language-behaviour/T079-simplemapper-nosuffix_exception.swift	2010-03-24 21:59:25 UTC (rev 3266)
@@ -0,0 +1,16 @@
+// this one is like test T078-simplemapper-nosuffix, but demonstrates the 
+// mapping exception on invalid values
+type messagefile;
+
+(messagefile t) write() { 
+    app {
+        echo @filename(t) stdout=@filename(t);
+    }
+}
+
+messagefile outfile <simple_mapper;
+                     prefix="T078-simplemapper-nosuffix", noauto="exception",
+                     suffix="_nodot.out">;
+
+outfile = write();
+




More information about the Swift-commit mailing list