You can not 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
233B

  1. package main
  2. import (
  3. "os"
  4. "testing"
  5. )
  6. func TestMain(m *testing.M) {
  7. os.Exit(m.Run())
  8. }
  9. func TestHelloWorld(t *testing.T) {
  10. if HelloWorld() != "hello world" {
  11. t.Errorf("got %s expected %s", HelloWorld(), "hello world")
  12. }
  13. }

Powered by TurnKey Linux.