On Tuesday 13 January 2004 16:41, Elizabeth Mattijsen wrote:
> Maybe the first parameter of "todo_some" should also accept a code 
> reference to a subroutine which, given the other parameters, is 
> supposed to give the TODO reason?  That would make it even more 
> flexible, I would think.

I think at that point put a standard todo inside your loop is easier probably

TODO:{
  todo_skip "because", 1 if (some condition);
  #... the real test
}

You coukd have a skip_some_by_name() or skip_some_by_number

Better still, use just 1 function and if the hash key is a number then assume 
it's a test number if it's not, then assume a test name. This should be safe 
enough as Test::Builder already complains when you use a number as a test 
name so there's no great harm in making it a prerequisite to using this 
function,

F

Reply via email to