17-654/17-754: Analysis of Software Artifacts Class Participation Sheet For Lecture 4, Testing

advertisement
17-654/17-754: Analysis of Software Artifacts
Class Participation Sheet
For Lecture 4, Testing
Date: January 24, 2008
Name: ____________________________________
Andrew ID: _____________________
Question 1 [practice]. Consider the following specification: given numbers a, b, and c, the
program shall return the roots of the quadratic polynomial ax2 + bx + c. Recall that the roots of a
quadratic equation are given by:
b  b2  4ac
x
2a
a) Write some partition test cases
b) What would be an example of a boundary test?
c) Write some robustness tests (invalid inputs)
Question 2 [discussion]. What criteria could you use to decide when testing is complete?
Optional: Ask a question, make a suggestion, or provide feedback to the instructor/TAs
Download