drone-with-go-test/main_test.go

17 lines
233 B
Go
Raw Normal View History

2018-09-15 00:27:38 +02:00
package main
import (
"os"
"testing"
)
func TestMain(m *testing.M) {
os.Exit(m.Run())
}
func TestHelloWorld(t *testing.T) {
if HelloWorld() != "hello world" {
t.Errorf("got %s expected %s", HelloWorld(), "hello world")
}
}