|
Boost : |
From: Rob Stewart (stewart_at_[hidden])
Date: 2004-09-27 11:12:06
From: Vladimir Prus <ghost_at_[hidden]>
> 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_at_[hidden] Software Engineer http://www.sig.com Susquehanna International Group, LLP using std::disclaimer;
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk