develooper Front page | perl.perl5.porters | Postings from May 2008

Re: TODO Tests

Thread Previous | Thread Next
David Nicol
May 6, 2008 08:46
Re: TODO Tests
Message ID:
On Tue, May 6, 2008 at 2:47 PM, Renée Bäcker
>  Then you have to save what foo() returned when you added the TODO test...
>  Renée

My suggestion for how to do this is to check for the existence
${caller().'::WAS'} in
whatever path is currently followed when ${caller().'::TODO'} is set, within the
definition of C<sub is> (or wherever C<local $TODO> is checked, if not there)
and emit an informational notification when the result has changed,
which is AIUI
what Bram wants.

Perhaps C<local $WAS> could be a hashref indexing versions and platforms
to obtained results when the obtained incorrect result is different
different places,
as a way to extend the semantics of $WAS, but initially a scalar holding the
expected wrong result is all that is needed.  Additional hooks might
include text
of the result change notification.

"For every complex problem, there is a solution that is simple, neat,
and wrong." -- Mencken

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About