13 lines
180 B
Go
13 lines
180 B
Go
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)
|
|
}
|
|
}
|