learn-go-with-tests/hello_test.go
2022-01-26 14:26:03 +00:00

13 lines
167 B
Go

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