Re: TAPx::Parser 0.21

2006-09-11 Thread Michael G Schwern

Ovid wrote:

 - Corrected the grammar to allow for a plan of 1..0 (infinite
   stream).


1..0 is currently used as part of the skip all syntax.

 1..0 # skip Because I said so

Perhaps an infinite stream is just 1.. ?


Re: TAPx::Parser 0.21

2006-09-11 Thread Ovid
- Original Message 
From: Michael G Schwern [EMAIL PROTECTED]
 Ovid wrote:
   - Corrected the grammar to allow for a plan of 1..0 (infinite
 stream).

 1..0 is currently used as part of the skip all syntax.

  1..0 # skip Because I said so

 Perhaps an infinite stream is just 1.. ?

Ah, I misremembered it.

It would be nice to have the plan indicate that an infinite stream is 
forthcoming.  That would make it easier to write custom harnesses for it.

Cheers,
Ovid
 
-- 
Buy the book -- http://www.oreilly.com/catalog/perlhks/
Perl and CGI -- http://users.easystreet.com/ovid/cgi_course/






Re: TAPx::Parser 0.21

2006-09-11 Thread Chris Dolan

On Sep 11, 2006, at 9:58 AM, Ovid wrote:


- Original Message 
From: Michael G Schwern [EMAIL PROTECTED]

Ovid wrote:
 - Corrected the grammar to allow for a plan of  
1..0 (infinite

   stream).


1..0 is currently used as part of the skip all syntax.

 1..0 # skip Because I said so

Perhaps an infinite stream is just 1.. ?


Ah, I misremembered it.

It would be nice to have the plan indicate that an infinite stream  
is forthcoming.  That would make it easier to write custom  
harnesses for it.


Sorry if I'm jumping into this thread out of context.  I hadn't seen  
any discussion of infinite streams before now.


How is that infinite stream different from the no_plan case?  Is it  
truly infinite or just undetermined?  That is, are you trying to code  
for the following use case?


  use Test::More test = 'Inf';
  use LWP::Simple qw(get);
  while (1) {
 ok(get('http://www.example.com/'));
 sleep 60;
  }

or is it something else entirely?

Chris

--
Chris Dolan, Software Developer, Clotho Advanced Media Inc.
608-294-7900, fax 294-7025, 1435 E Main St, Madison WI 53703
vCard: http://www.chrisdolan.net/ChrisDolan.vcf

Clotho Advanced Media, Inc. - Creators of MediaLandscape Software  
(http://www.media-landscape.com/) and partners in the revolutionary  
Croquet project (http://www.opencroquet.org/)





Re: TAPx::Parser 0.21

2006-09-11 Thread Ovid
- Original Message 
From: Chris Dolan [EMAIL PROTECTED]

 How is that infinite stream different from the no_plan case?  Is it  
 truly infinite or just undetermined?  That is, are you trying to code  
 for the following use case?

   use Test::More test = 'Inf';
   use LWP::Simple qw(get);
   while (1) {
  ok(get('http://www.example.com/'));
  sleep 60;
   }

 or is it something else entirely?

You have the basic idea.  You can also look at 
http://search.cpan.org/dist/Test-AtRuntime/ for another example of an infinite 
stream.

It's important to distinguish an infinite stream because as more people start 
writing harnesses to deal with TAP output, they need to know immediately that a 
stream is infinite so they don't do something bad like try to cache all TAP 
output.

 Clotho Advanced Media, Inc. - Creators of MediaLandscape Software  
 (http://www.media-landscape.com/) and partners in the revolutionary  
 Croquet project (http://www.opencroquet.org/)

Hey, I didn't know you had anything to do with Croquet.  That's an awesome 
project!

Cheers,
Ovid
 
-- 
Buy the book -- http://www.oreilly.com/catalog/perlhks/
Perl and CGI -- http://users.easystreet.com/ovid/cgi_course/