[Swift-commit] r5816 - trunk/examples/misc
davidk at ci.uchicago.edu
davidk at ci.uchicago.edu
Mon Jul 2 15:47:18 CDT 2012
Author: davidk
Date: 2012-07-02 15:47:18 -0500 (Mon, 02 Jul 2012)
New Revision: 5816
Modified:
trunk/examples/misc/catsn.swift
trunk/examples/misc/hostsn.swift
Log:
Use toInt rather than toint for test scripts
Modified: trunk/examples/misc/catsn.swift
===================================================================
--- trunk/examples/misc/catsn.swift 2012-07-02 16:41:04 UTC (rev 5815)
+++ trunk/examples/misc/catsn.swift 2012-07-02 20:47:18 UTC (rev 5816)
@@ -9,7 +9,7 @@
string char[] = @strsplit(t, "");
file out[]<simple_mapper; location=".", prefix="catsn.",suffix=".out">;
-foreach j in [1:@toint(@arg("n","10"))] {
+foreach j in [1:@toInt(@arg("n","10"))] {
file data<"data.txt">;
out[j] = cat(data);
}
Modified: trunk/examples/misc/hostsn.swift
===================================================================
--- trunk/examples/misc/hostsn.swift 2012-07-02 16:41:04 UTC (rev 5815)
+++ trunk/examples/misc/hostsn.swift 2012-07-02 20:47:18 UTC (rev 5816)
@@ -6,6 +6,6 @@
}
file out[]<simple_mapper; location="outdir", prefix="f.",suffix=".out">;
-foreach j in [1:@toint(@arg("n","1"))] {
+foreach j in [1:@toInt(@arg("n","1"))] {
out[j] = hostname();
}
More information about the Swift-commit
mailing list