17 lines
270 B
Go
17 lines
270 B
Go
package main
|
|
|
|
import (
|
|
"os"
|
|
"testing"
|
|
)
|
|
|
|
func TestMain(m *testing.M) {
|
|
os.Exit(m.Run())
|
|
}
|
|
|
|
func TestHelloWorld(t *testing.T) {
|
|
if (HelloWorld() != "hello world") && (HelloWorld() != "Hello world") {
|
|
t.Errorf("got %s expected %s", HelloWorld(), "hello world")
|
|
}
|
|
}
|