Re: test logging

2005-03-17 Thread Stevan Little
On Mar 16, 2005, at 1:51 PM, Nathan Gray wrote: I can try using the subroutines that are provided right now, which brings me to the point of this post originally: I have seen systems which log test output (test description, type of failure, expected value, actual value) to a file. I find this type

Re: test logging

2005-03-17 Thread Nathan Gray
On Wed, Mar 16, 2005 at 08:32:48AM -0500, Stevan Little wrote: > > On Mar 15, 2005, at 1:23 PM, Nathan Gray wrote: > >Is there a place for Test.pm from perl5 in the perl6 world? That's the > >one I want to use. > > You are certainly free to write it, and I think it would be a great > exercise i

Re: test logging

2005-03-16 Thread Stevan Little
On Mar 15, 2005, at 1:23 PM, Nathan Gray wrote: Is there a place for Test.pm from perl5 in the perl6 world? That's the one I want to use. You are certainly free to write it, and I think it would be a great exercise in multi-subs to do so. However the name Test.pm has already been taken. But I wo

Re: test logging

2005-03-16 Thread Nathan Gray
Is there a place for Test.pm from perl5 in the perl6 world? That's the one I want to use. -kolibrie

Re: test logging

2005-03-15 Thread Stevan Little
On Mar 15, 2005, at 10:53 AM, Nathan Gray wrote: On Tue, Mar 15, 2005 at 08:27:32AM -0500, Stevan Little wrote: On Mar 15, 2005, at 6:45 AM, Nathan Gray wrote: I also think it would be very nice to be able to use other operators, such as gt, lt, or isa. is($got, $expected, $desc, operator => 'gt')

Re: test logging

2005-03-15 Thread Nathan Gray
On Tue, Mar 15, 2005 at 08:27:32AM -0500, Stevan Little wrote: > On Mar 15, 2005, at 6:45 AM, Nathan Gray wrote: > >I also think it would be very nice to be able to use other operators, > >such as gt, lt, or isa. > > > > is($got, $expected, $desc, operator => 'gt'); > > Personally, I think a more

Re: test logging

2005-03-15 Thread Luke Palmer
Stevan Little writes: > So if I understand you correctly, then the implementation code would > look something like this right? > > sub cmp_ok (Str $got, Code $comparison_func, Str $expected, Str ?$desc) > returns Bool is export { > my $test := $comparison_func($got, $expected); > ...

Re: test logging

2005-03-15 Thread Stevan Little
On Mar 15, 2005, at 10:32 AM, Luke Palmer wrote: Stevan Little writes: On Mar 15, 2005, at 6:45 AM, Nathan Gray wrote: I think it would be really nice for failed, todo, and skipped tests to log their $expected and $got values, with any $desc or $context information to a log file (probably test.log

Re: test logging

2005-03-15 Thread Luke Palmer
Stevan Little writes: > > On Mar 15, 2005, at 6:45 AM, Nathan Gray wrote: > > >I think it would be really nice for failed, todo, and skipped tests to > >log their $expected and $got values, with any $desc or $context > >information to a log file (probably test.log). > > > >I also think it would b

Re: test logging

2005-03-15 Thread Stevan Little
On Mar 15, 2005, at 6:45 AM, Nathan Gray wrote: I think it would be really nice for failed, todo, and skipped tests to log their $expected and $got values, with any $desc or $context information to a log file (probably test.log). I also think it would be very nice to be able to use other operators,