Vous ne pouvez pas sélectionner plus de 25 sujets
Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
|
- 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")
- }
- }
|