Title: Name of book: Powerful Command Line Applications in Go (page 7)
Could you put the update to TestCountWords
before the new TestCountLines
function?
I’m doing this in VS Code with the Go extension installed, and it was showing errors in the test because the countLines
parameter has been added to the count
function, but the test hadn’t been updated. As much as possible, I prefer to fix broken things before adding new things.
I submitted a bogus erratum as a result.