240 likes | 310 Views
Explore the significance of contracts, logging, and equivalence classes in unit testing. Learn how preconditions, postconditions, and invariants play a crucial role in software development. Understand the value of regression testing and test-driven development.
E N D
Chapter 10 Testing
Contracts preconditions - relationships that must hold before a function is executed, postconditions- relationships that must hold after a function is executed, invariants - relationships that must hold while a function is executed.
Equivalence Classes The equivalence classes we might consider for this code include: even positive numbers odd positive numbers even negative numbers odd negative numbers zero