On Tuesday 12 February 2008 10:55:21 chromatic wrote:

> On Tuesday 12 February 2008 10:06:14 Eric Wilhelm wrote:
> > How will you print the assertion code without a source filter?
>
> "Show Source on Exception" is fairly easy:
>
> http://www.oreillynet.com/onlamp/blog/2007/10/adding_show_source_to_perl_ex
>c.html
>
> Making that work with anonymous functions is trickier, but doable.

Of course, in the case of Test::Exception, the assertion functions already 
have the code reference that might throw an exception, in which case the 
problem isn't even tricky.

-- c

Reply via email to