Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

On when to test

by petdance (Parson)
on Mar 31, 2012 at 17:40 UTC ( #962781=perlmeditation: print w/ replies, xml ) Need Help??

The only time you need to test your code is if you care that it works correctly.

xoxo,
Andy

Comment on On when to test
Re: On when to test
by tobyink (Abbot) on Mar 31, 2012 at 21:37 UTC

    What if you care that it works incorrectly?

    The following Perl one liner tests to make sure that your test suite is failing...

    perl -MTAP::Harness -E'say for "1..1", TAP::Harness->new({verbosity=>- +3,lib=>["lib"]})->runtests(<t/*.t>)->all_passed?"not ok 1":"ok 1"'
    perl -E'sub Monkey::do{say$_,for@_,do{($monkey=[caller(0)]->[3])=~s{::}{ }and$monkey}}"Monkey say"->Monkey::do'

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlmeditation [id://962781]
Approved by planetscape
Front-paged by planetscape
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (6)
As of 2014-09-22 05:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (180 votes), past polls