Open TheInvincibleRalph opened 3 months ago
I'm not sure exactly where you are, so it's very hard for me to offer any help, but these tests do pass.
Maybe have a look here https://github.com/quii/learn-go-with-tests/tree/main/mocking/v5
The function was refactored in the main file you sent:
func Countdown(out io.Writer, sleeper Sleeper) {
for i := countdownStart; i > 0; i-- {
fmt.Fprintln(out, i)
sleeper.Sleep()
}
fmt.Fprint(out, finalWord)
}
but the change was not later made in the tutorial here: https://github.com/quii/learn-go-with-tests/blob/main/mocking.md
The implemetation here:
gives this error: