Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: What goes in a test suite?

by Anonymous Monk
on Aug 22, 2003 at 09:14 UTC ( #285720=note: print w/replies, xml ) Need Help??


in reply to What goes in a test suite?

My high-school programming teacher kept demanding precondition, postcondition, for every function we wrote. A test suite should ensure post condition happens when precondition happens ;)

Replies are listed 'Best First'.
Re^2: What goes in a test suite?
by adrianh (Chancellor) on Aug 22, 2003 at 10:57 UTC

    That's certainly one thing that tests should do. But there are many more also (e.g. do you get appropriate error reporting when pre-condition is not met on a function, does the application as a whole exhibit appropriate behaviour, etc.)

    You might also want to look at Design By Contract as an alternative way of using pre-conditions, post-conditions and invariants in software development.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://285720]
help
Chatterbox?
[nysus]: What happened to the submit button? All I have is a preview button.
[erix]: perlmonks has become read-only ?

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (11)
As of 2017-12-15 11:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What programming language do you hate the most?




















    Results (431 votes). Check out past polls.

    Notices?