選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

17 行
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.