When a hard-coded implementation passes one test but its proper generalization is unclear, add tests with different inputs. Each new failing test narrows the behavior the implementation must support. section 2.2.4 section 4.1.2
Evolving a template renderer
Suppose a template should render a name. Add a second set call with a different value and assert the new result; the hard-coded answer fails. Store the value to pass, then vary the surrounding template text to expose the remaining literal output and reveal the need to parse the template. section 2.2.4
Listing 2.8. Making the second test pass by storing and returning the set value
See the interim Java implementation: it stores the set value but still hard-codes the greeting prefix. section 2.2.4
