in reply to Re: Better arranging Test Suite
in thread Better arranging Test Suite

Thank you both. Both have better and cleaner approach.

Replies are listed 'Best First'.
Re^3: Better arranging Test Suite
by xdg (Monsignor) on Aug 13, 2007 at 03:34 UTC

    Corion's approach works well when the data is pretty static. I often wind up needing perl data structures as input to my case, so I specify my cases in code rather than in DATA. But both are the same basic approach.

    -xdg

    Code written by xdg and posted on PerlMonks is public domain. It is provided as is with no warranties, express or implied, of any kind. Posted code may not have been tested. Use of posted code is at your own risk.