11 lines
176 B
Go
11 lines
176 B
Go
package main
|
|
|
|
import "testing"
|
|
|
|
func TestHello(t *testing.T) {
|
|
want := "Hello, world!\n"
|
|
if got := Hello(); got != want {
|
|
t.Errorf("Hello() = %q, want %q", got, want)
|
|
}
|
|
}
|