
294 CHAPTER 10 Testing and Quality Assurance
b. After reaching the 70% level, suppose that the remaining three
seeded defects are found along with only four more real
defects. Explain what you think is happening.
2. For the triangle problem described in Section 10.3.6, do the fol-
lowing exercises:
a. Use test-driven development to define a method called Equilat-
eral that returns true if the triangle is equilateral (and valid). An
equilateral triangle is that for which all sides are of equal length.
b. Evaluate the coverage that the test cases you produced achieve.
If you did not achieve full path coverage, create test cases to
achieve path coverage. ...