
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));	
  }
}


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)");
}

Extend test for empty globs
Extend test for empty globs

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