Aristotle Pagaltzis wrote: > * Michael G Schwern <schw...@pobox.com> [2009-02-18 21:55]: >> One of the issues with that approach is Test::Builder's history >> can't store test #2 twice. So history is lost. > > Shouldn’t this be fixed?
Sure, but how? Internally, fine, it can be stored using a list of lists. But the interfaces to the history, Test::Builder->summary() and Test::Builder->details(), both return flat lists where $test[$num] is test $num + 1. And I really hate mixing refs and non-refs in a list. The user has to do shenanigans like this: for my $test (map { ref $_ ? @$_ : $_ } $tb->details) { ... } Which they'll forget to do. For TB2 I'll probably remove the assumption that element N is test N+1 to retain the flat list rather than make all the elements be refs. -- "Clutter and overload are not an attribute of information, they are failures of design" -- Edward Tufte