drone-with-go/main_test.go
surtur b10a360365
Some checks failed
continuous-integration/drone/push Build is failing
edit the test to reflect changes
2020-02-27 20:20:18 +01:00

20 lines
305 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" {
if HelloWorld() != "Hello world" {
return
}
t.Errorf("got %s expected %s", HelloWorld(), "hello world")
}
}