13 lines
183 B
Go
13 lines
183 B
Go
package hellogomod
|
|
|
|
import "testing"
|
|
|
|
func TestSayHello(t *testing.T) {
|
|
s := SayHello("yuki")
|
|
want := "Hello, yuki!"
|
|
|
|
if s != want {
|
|
t.Errorf("return %s, want %s", s, want)
|
|
}
|
|
}
|