12 lines
166 B
Go
12 lines
166 B
Go
package main
|
|
|
|
import "testing"
|
|
|
|
func TestHello(t *testing.T) {
|
|
got := Hello()
|
|
exp := "Hello world"
|
|
if got != exp {
|
|
t.Errorf("got %q expected %q", got, exp)
|
|
}
|
|
}
|