
From: Vladimir Prus <ghost@cs.msu.su>
Angus Leeming wrote:
The real work is actually done by Boost.Filesystem and Boost.Regex. All I do is transform the glob into an equivalent regex using Boost.Spirit and then loop recursively over the "pattern tree" to build up the list of matching files.
Then, why do you need real files for testing? If you're creating Boost.Regex from glob pattern, you can test the created regex on strings, assuming Boost.Filesystem is not buggy and returns the right filenames ;-)
What if his code doesn't use Boost.Regex or Boost.Filesystem correctly now or in the future? The tests should cover all of his code, shouldn't they? -- Rob Stewart stewart@sig.com Software Engineer http://www.sig.com Susquehanna International Group, LLP using std::disclaimer;