hellogomod/hello_test.go
Yuki 0b8c840f11
feat: Add SayHello.
Add SayHello function for test.
2025-06-14 00:01:56 +08:00

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)
}
}