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

Re: Perl 6 and Test.pm's skip() function

From:
Eric Wilhelm
Date:
January 22, 2009 09:50
Subject:
Re: Perl 6 and Test.pm's skip() function
Message ID:
200901220950.38501.scratchcomputing@gmail.com
# from Ovid
# on Thursday 22 January 2009 02:00:

>The programmer still has to count if the programmer wants a plan.

I'm not sure anybody *wants* a plan.  A way to ensure that every test 
ran or accurate progress reporting, yes.  It seems to me that some are 
just willing to suffer counting their tests to achieve that.

Pretend for a moment that the number of tests could automatically be 
counted by the interpreter (e.g. at the parse/compile stage.)  Would we 
still have the manual counting?

I suppose "if($whatever) { some_test() } else { alternate_test()}"
would complicate automatic counting.  But, you have to go down one 
branch.  The only impossible spot is when tests are inside e.g. a 
runtime dispatched method, no?  (And, given the procedural paradigm, 
that seems to be an odd case.)

--Eric
-- 
Any sufficiently advanced incompetence is indistinguishable from malice.
--The Napoleon-Clarke Law
---------------------------------------------------
    http://scratchcomputing.com
---------------------------------------------------



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