Add test
This commit is contained in:
parent
b985c2d4ba
commit
77e6cc55b7
3 changed files with 21 additions and 2 deletions
12
hello_test.go
Normal file
12
hello_test.go
Normal file
|
@ -0,0 +1,12 @@
|
|||
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)
|
||||
}
|
||||
}
|
Reference in a new issue