You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
235 B
Go

9 years ago
package main
7 years ago
import (
"os"
"testing"
)
func TestMain(m *testing.M) {
os.Exit(m.Run())
}
9 years ago
func TestHelloWorld(t *testing.T) {
7 years ago
if HelloWorld() != "hello joseph" {
9 years ago
t.Errorf("got %s expected %s", HelloWorld(), "hello world")
}
}