package main import "testing" func TestHelloWorld(t *testing.T) { if HelloWorld() != "hello world" { t.Errorf("got %s expected %s", HelloWorld(), "hello world") } }