[Pdx-pm] Test::Builder calling convention

benh ben.hengst at gmail.com
Tue Mar 17 21:22:40 PDT 2009


On Tue, Mar 17, 2009 at 9:13 PM, Michael G Schwern <schwern at pobox.com> wrote:
> benh wrote:
>> On Tue, Mar 17, 2009 at 5:20 PM, Michael G Schwern <schwern at pobox.com> wrote:
>>> benh wrote:
>>>> If we decupple the display then we can essentually template out any
>>>> given data to be TAP. That said what would you want this to look like
>>>> as data?
>>>>
>>>> my $data = {
>>>>  tests => [
>>>>   { pass => 0, have => 'foo', want => 'bar', file => 't/foo.t', line => 23 },
>>>>   { pass => 0, msg => 'Failed test in t/foo.t at line 23.' }
>>>>  ],
>>>>  msg => 'I like pie',
>>>> };
>>> That loses order.  It would have to be more like this:
>>>
>>>  my @data = [
>>>      { pass => 0, have => 'foo', want => 'bar', file => 't/foo.t', line => 23 },
>>>      { pass => 0, msg => 'Failed test in t/foo.t at line 23.' },
>>>      { msg => 'I like pie' },
>>>  ];
>>>
>>
>> I think that I miss understood then, It seems that you were trying to
>> imply that there would be a need to delever some notation that was not
>> in the stream of tests. I can see the need to have in line msg's, but
>> does this point to #4, notes about the the testing stream?
>
> How do you mean?  Meta information about the stream as a whole?  Like the date
> and time and Perl version and stuff?
>

Those are much better examples then what I was thinking of though the
concept is the same, I was reading your pie example as something that
existed out side the stream of tests.

>
>
> --
> 39. Not allowed to ask for the day off due to religious purposes, on the
>    basis that the world is going to end, more than once.
>    -- The 213 Things Skippy Is No Longer Allowed To Do In The U.S. Army
>           http://skippyslist.com/list/
>



-- 
benh~

http://three.sentenc.es/


More information about the Pdx-pm-list mailing list