NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.
All the Perl that's Practical to Extract and Report
Stories, comments, journals, and other submissions on use Perl; are Copyright 1998-2006, their respective owners.
Perhaps you've chosen a bad example... (Score:1)
It seems to me that the example you give is ultimately a poor test. You’re relying upon an implicit feature of the testing interface to test for explicit behaviors of your code. As a person new to your project how I am supposed to know that
list()is only ever supposed to return two elements? Sure the tests fail but how do I know that the tests were correct in the first place?By making an explicit test for the explicit behavior, I can communicate to someone else that I’m expecting
list()to onlRe: (Score:1)
--fREW
http://blog.afoolishmanifesto.com
Re:Perhaps you've chosen a bad example... (Score:1)
done_testingfor future code.Reply to This
Parent