learn-go-with-tests/hello/hello_test.go

13 lines
174 B
Go
Raw Normal View History

2023-09-29 10:07:31 -04:00
package main
import "testing"
func TestHello(t *testing.T) {
got := Hello("Chris")
want := "Hello, Chris"
if got != want {
t.Errorf("got %q want %q", got, want)
}
}