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

xoxo,
Andy

Replies are listed 'Best First'.
Re: On when to test
by tobyink (Canon) 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'