[Swift-commit] r2676 - in trunk: . tests/language-behaviour

noreply at svn.ci.uchicago.edu noreply at svn.ci.uchicago.edu
Tue Mar 10 08:31:42 CDT 2009


Author: benc
Date: 2009-03-10 08:31:40 -0500 (Tue, 10 Mar 2009)
New Revision: 2676

Added:
   trunk/tests/language-behaviour/161-star-dot.out.expected
   trunk/tests/language-behaviour/162-dot-on-array.out.expected
   trunk/tests/language-behaviour/162-dot-on-array.swift
Removed:
   trunk/161-star-dot.out.expected
   trunk/162-dot-on-array.out.expected
Log:
tests for star-related syntax were messed up

Deleted: trunk/161-star-dot.out.expected
===================================================================
--- trunk/161-star-dot.out.expected	2009-03-10 13:21:33 UTC (rev 2675)
+++ trunk/161-star-dot.out.expected	2009-03-10 13:31:40 UTC (rev 2676)
@@ -1 +0,0 @@
-two-C

Deleted: trunk/162-dot-on-array.out.expected
===================================================================
--- trunk/162-dot-on-array.out.expected	2009-03-10 13:21:33 UTC (rev 2675)
+++ trunk/162-dot-on-array.out.expected	2009-03-10 13:31:40 UTC (rev 2676)
@@ -1 +0,0 @@
-two-C

Copied: trunk/tests/language-behaviour/161-star-dot.out.expected (from rev 2675, trunk/161-star-dot.out.expected)
===================================================================
--- trunk/tests/language-behaviour/161-star-dot.out.expected	                        (rev 0)
+++ trunk/tests/language-behaviour/161-star-dot.out.expected	2009-03-10 13:31:40 UTC (rev 2676)
@@ -0,0 +1 @@
+two-C

Copied: trunk/tests/language-behaviour/162-dot-on-array.out.expected (from rev 2675, trunk/162-dot-on-array.out.expected)
===================================================================
--- trunk/tests/language-behaviour/162-dot-on-array.out.expected	                        (rev 0)
+++ trunk/tests/language-behaviour/162-dot-on-array.out.expected	2009-03-10 13:31:40 UTC (rev 2676)
@@ -0,0 +1 @@
+two-C

Added: trunk/tests/language-behaviour/162-dot-on-array.swift
===================================================================
--- trunk/tests/language-behaviour/162-dot-on-array.swift	                        (rev 0)
+++ trunk/tests/language-behaviour/162-dot-on-array.swift	2009-03-10 13:31:40 UTC (rev 2676)
@@ -0,0 +1,36 @@
+type messagefile;
+
+(messagefile t) greeting(string s) { 
+    app {
+        echo s stdout=@filename(t);
+    }
+}
+
+messagefile outfile <"162-dot-on-array.out">;
+
+type astruct {
+  string a;
+  string b;
+  string c;
+};
+
+astruct foo[];
+
+foo[0].a = "zero-A";
+foo[0].b = "zero-B";
+foo[0].c = "zero-C";
+
+foo[1].a = "one-A";
+foo[1].b = "one-B";
+foo[1].c = "one-C";
+
+foo[2].a = "two-A";
+foo[2].b = "two-B";
+foo[2].c = "two-C";
+
+string s[] = foo.c;
+
+string u = s[2];
+
+outfile = greeting(u);
+




More information about the Swift-commit mailing list