learn-go-with-tests/hello_test.go

13 lines
167 B
Go
Raw Normal View History

2022-01-26 13:12:15 +00:00
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)
}
}