
import io;
import unix;

(file o[]) task(file i, int n) "turbine" "0.1"
[
"""
set f [ swift_filename &<<i>> ]
exec ./317-array-build.task.sh $f <<n>>;
set L [ glob test-317-*.data ];
set <<o>> swift_array_build $L file;
"""
 ];

main
{
  printf("OK");
  file i<"input.txt">;
  file o[];
  o = task(i, 10);
  foreach f in o
  {
    printf("output file: %s", filename(f));
  }
  i = touch();
}


import io;
import unix;

(file o[]) task(file i, int n) "turbine" "0.1"
[
"""
set f [ swift_filename &<<i>> ]
exec ./317-array-build.task.sh $f <<n>>;
set L [ glob test-317-*.data ];
swift_array_build <<o>> $L file;
"""
 ];

main
{
  printf("OK");
  file i<"input.txt">;
  file o[];
  o = task(i, 10);
  foreach f in o
  {
    printf("output file: %s", filename(f));
  }
  i = touch();
}

--- 
+++ 
@@ -8,7 +8,7 @@
 set f [ swift_filename &<<i>> ]
 exec ./317-array-build.task.sh $f <<n>>;
 set L [ glob test-317-*.data ];
-swift_array_build <<o>> $L file;
+set <<o>> swift_array_build $L file;
 """
  ];
 
Update test 317 for modified array_build syntax

git-svn-id: 0c5512015aa96f7d3f5c3ad598bd98edc52008b1@10805 dc4e9af1-7f46-4ead-bba6-71afc04862de
