On 9/20/06, A. Pagaltzis <[EMAIL PROTECTED]> wrote:
* Michael G Schwern <[EMAIL PROTECTED]> [2006-09-18 13:15]:
> In Regexp::Common's case the tests are almost entirely
> generated so fixing them would be easy.

No way. Abigail lovingly hand-crafted every last one of those
240,000 tests (or whatever insane number it was last time I
looked). :-)

I recently had to poke around at Abigails tests and i have to say
there was some cool stuff in there. Its cryptic, but there are a few
neat ideas. One of which I borrowed for t/op/pat.t, which is to output
the plan in a BEGIN block that is at the bottom of the test file.
Presto, only one place to update when the number of tests in the file
change. Kinda obvious in retrospect, but pretty new to me, and useful
for test files where you can't calculate your plan.

Yves



--
perl -Mre=debug -e "/just|another|perl|hacker/"

Reply via email to