Re: what's the right way to test a source filter?

2007-08-10 Thread Dominique Quatravaux
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 David Nicol a écrit : so I am closer than ever to releasing my way-cool source filter module, which is based on Filter::Simple. Big question: how do I write the test script? You can use Test::Cmd on a sub-Perl. See

Re: what's the right way to test a source filter?

2007-08-08 Thread Ovid
--- David Nicol [EMAIL PROTECTED] wrote: so I am closer than ever to releasing my way-cool source filter module, which is based on Filter::Simple. Big question: how do I write the test script? It depends upon what you're filtering. In Sub::Signatures, you can have regular subroutine and

Re: what's the right way to test a source filter?

2007-08-08 Thread Fergal Daly
I've never used source filters but if Perl allows you to extract the post-filtered source code then I'd test that with a whole bunch of snippets. If not then I'd test the compiled code again expected compiled code by running both through B::Deparse (or something like it, demerphq has a module for