[Swift-commit] r6602 - branches/release-0.94/tests/language-behaviour/IO
yadunandb at ci.uchicago.edu
yadunandb at ci.uchicago.edu
Wed Jul 3 15:51:13 CDT 2013
Author: yadunandb
Date: 2013-07-03 15:51:11 -0500 (Wed, 03 Jul 2013)
New Revision: 6602
Added:
branches/release-0.94/tests/language-behaviour/IO/readStructured.in
branches/release-0.94/tests/language-behaviour/IO/readStructured01.swift
branches/release-0.94/tests/language-behaviour/IO/readStructured02.swift
branches/release-0.94/tests/language-behaviour/IO/readStructured02.timeout
Log:
Adding tests for readStructured.
Added: branches/release-0.94/tests/language-behaviour/IO/readStructured.in
===================================================================
--- branches/release-0.94/tests/language-behaviour/IO/readStructured.in (rev 0)
+++ branches/release-0.94/tests/language-behaviour/IO/readStructured.in 2013-07-03 20:51:11 UTC (rev 6602)
@@ -0,0 +1,2 @@
+rows[0] = "hello"
+rows[1] = "World!"
Added: branches/release-0.94/tests/language-behaviour/IO/readStructured01.swift
===================================================================
--- branches/release-0.94/tests/language-behaviour/IO/readStructured01.swift (rev 0)
+++ branches/release-0.94/tests/language-behaviour/IO/readStructured01.swift 2013-07-03 20:51:11 UTC (rev 6602)
@@ -0,0 +1,7 @@
+type matrix {
+ string rows[];
+}
+
+matrix m;
+m = readStructured("readStructured.in");
+
Added: branches/release-0.94/tests/language-behaviour/IO/readStructured02.swift
===================================================================
--- branches/release-0.94/tests/language-behaviour/IO/readStructured02.swift (rev 0)
+++ branches/release-0.94/tests/language-behaviour/IO/readStructured02.swift 2013-07-03 20:51:11 UTC (rev 6602)
@@ -0,0 +1,10 @@
+type matrix {
+ string rows[];
+}
+
+matrix m;
+m = readStructured("readStructured.in");
+
+foreach item,index in m.rows {
+ tracef("Row[%i] : %s \n", index, item);
+}
\ No newline at end of file
Added: branches/release-0.94/tests/language-behaviour/IO/readStructured02.timeout
===================================================================
--- branches/release-0.94/tests/language-behaviour/IO/readStructured02.timeout (rev 0)
+++ branches/release-0.94/tests/language-behaviour/IO/readStructured02.timeout 2013-07-03 20:51:11 UTC (rev 6602)
@@ -0,0 +1 @@
+120
More information about the Swift-commit
mailing list