develooper Front page | perl.qa | Postings from January 2009

Re: Let us stop rehashing plans

From:
David Cantrell
Date:
January 26, 2009 06:34
Subject:
Re: Let us stop rehashing plans
Message ID:
20090126143441.GG20088@bytemark.barnyard.co.uk
On Sat, Jan 24, 2009 at 12:16:33AM +0800, Gaurav Vaidya wrote:

> Based on the recent questions on the TAP mailing list asking about the  
> significance of "1..", I wonder if this could be simplified to:
> 	TAP version 13
> 	1..2 # Initialization
> 	ok 1
> 	ok 2
> 	3..6 # Testing individual feeds
> 	ok 3
> 	ok 4
> 	ok 5
> 	ok 6
> 	7..7 # Testing cleanup
> 	ok 7
> 	0..0 # All done!

Could it be simplified further like this?

TAP version 13
1..2 # Initialization
ok 1
ok 2
+4   # Testing individual feeds
ok 3
ok 4
ok 5
ok 6
...

Although presumably it's up to Test::Something to turn my "plan four
more tests" into "3..6" so from the user's point of view they're the
same.

-- 
David Cantrell | Cake Smuggler Extraordinaire



nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About