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.
Nit pick (Score:2)
--
"Cake or Death!"
Re:Nit pick (Score:2)
Use of is(), like() and isa_ok() is a very good thing where possible.
-Dom
Question (Score:1)
But...
What is test # 7 about?
What if 'E' exists?
What if the object is inherited, couldn't it have a 'D'? (hmm... that wouldn't happen during testing tho... right?)
From a philosophical view, it would seem to me that tests should cover the requirements... and I didn't see anything in the requirement to drive test 7.
It also seems that if you wanted to check that there were not extra variables created, you would need to enume
Pik Nits (Score:2)
is better written as
for better diagnostics on failure. Any time you're writing
you probably want
unless your name is Nick Clark, in which case you reall, really meant '==' so its
cmp_ok($a, '==', 1 )or Damian Conway, in which case there's probably a really good reason you used ok() instead of is().Even better would be:
Mentioning that you're "testing" something in a test