
import io;
import files;
import sys;
import assert;

//usage: stc 563-glob.swift -S=/home/zzhang/*.swift
main
{
  file s[];	
  s = glob(argv("S"));
  foreach f in s
  {
    printf("file: %s", filename(f));	
  }

  file t[];
  t = glob("A.pattern.that.does.not.match.anything.*");
  assertEqual(size(t), 0, "size(t)");
}


import io;
import files;
import sys;

//usage: stc 563-glob.swift -S=/home/zzhang/*.swift
main
{
  file s[];	
  s = glob(argv("S"));
  foreach f in s
  {
    printf("file: %s", filename(f));	
  }
}

--- 
+++ 
@@ -2,6 +2,7 @@
 import io;
 import files;
 import sys;
+import assert;
 
 //usage: stc 563-glob.swift -S=/home/zzhang/*.swift
 main
@@ -12,4 +13,8 @@
   {
     printf("file: %s", filename(f));	
   }
+
+  file t[];
+  t = glob("A.pattern.that.does.not.match.anything.*");
+  assertEqual(size(t), 0, "size(t)");
 }
Extend test for empty globs

git-svn-id: 47705994653588c662f4ea400dfe88107361c0e2@12768 dc4e9af1-7f46-4ead-bba6-71afc04862de
