Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much

Re: *How* Do I Get Involved?

by astaines (Curate)
on May 16, 2002 at 21:32 UTC ( #167124=note: print w/replies, xml ) Need Help??

in reply to *How* Do I Get Involved?
in thread How You (Yes You!) Can Get Involved

Nice illustration. Most tests are as simple as those you have shown. Tests are meant to be very simple. Test the value of a function, test the type of the class prodcued by your constructor, test that your function breaks nicely for stupid inputs - by feeding it stupid inputs and looking at the results.

Take a look at some of the test code on CPAN - the few that I've looked at consist of strings of simple tests. The hardest tests are those which depend on something outside your module.

-- Anthony Staines

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://167124]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (6)
As of 2022-08-16 12:33 GMT
Find Nodes?
    Voting Booth?

    No recent polls found