in reply to Re: Testing for 16 possible combinations with 4 pull-down menus
in thread Testing for 16 possible combinations with 4 pull-down menus

Toward this purpose I created Set::CrossProduct. Instead of figuring out all the combinations, I have a bunch of anonymous arrays that specify possible values for each input. The module handles everything and hands me one set of inputs at a time. You call them "guard conditions" and I call them "boundary conditions".

In this case, there are only 16 combinations, but I've been able to work with thousands of combinations without making the test code huge.

--
brian d foy <bdfoy@cpan.org>
  • Comment on Re^2: Testing for 16 possible combinations with 4 pull-down menus

Replies are listed 'Best First'.
Re^3: Testing for 16 possible combinations with 4 pull-down menus
by tilly (Archbishop) on Dec 12, 2004 at 06:29 UTC
    Automation is good. It would have avoided the bug that I had in my code above. (If end_minute is not defined, you aren't allowed to have both start_minute and end_hour defined.)