Session #7
Answers
What is the first major step of the HtDF recipe?
What should a good purpose statement do?
Why is a stub useful before the real function body is written?
With a correct stub and meaningful tests for an unfinished function, what is the usual desirable result?
What should guide the choice of test expectations?
What is the purpose of a function template in early HtDF?
Which is the better signature when a function always produces a non-negative whole number?
What does it mean that the HtDF recipe is not a waterfall process?
A function tall? has a test only for a tall image. What important problem remains?
If a test fails after the body is implemented, what should you check before changing correct-looking code?
The specification says a rating is poor when it is less than 4.0. What should happen at exactly 4.0?
Why are verbose expectations such as (* 2 4.2) sometimes useful?
What does the Racket naming convention tall? communicate?
Which test set best examines a boundary at 25 where values below 25 and values at/above 25 behave differently?
Why is changing a correct implementation just to satisfy an incorrect test dangerous?