learn-go-with-tests/hello_test.go
Oliver Davies c715ac45e7 Revert "Force a failing test"
This reverts commit 8295f677a74ce6365b6be01119cf078dbd4561a1.
2022-01-26 14:26:13 +00:00

13 lines
176 B
Go

package main
import "testing"
func TestHello(t *testing.T) {
got := Hello("Oliver")
want := "Hello, Oliver"
if got != want {
t.Errorf("got %q want %q", got, want)
}
}