On 30 Jan 2007, at 18:19, A. Pagaltzis wrote:

That could easily be accomodated by having `throws_ok` accept a
sub ref as its condition argument. Then Test::Exception could
pass the value of $@ to this sub as the first argument, and clear
$@ to force people to use that argument instead of $@ itself;
handy because $@ is maddeningly difficult to correctly preserve
for testing.

Nice idea. I'll add it to the todo list (patches, with tests, welcome :-)

Cheers,

Adrian

Reply via email to