drone-with-go/main_test.go
surtur 70a41b44c8
All checks were successful
continuous-integration/drone/push Build is passing
learn golang b***h
2020-02-27 20:21:49 +01:00

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")
}
}