diff --git a/main_test.go b/main_test.go index 33d6622..8038229 100644 --- a/main_test.go +++ b/main_test.go @@ -10,10 +10,7 @@ func TestMain(m *testing.M) { } func TestHelloWorld(t *testing.T) { - if HelloWorld() != "hello world" { - if HelloWorld() != "Hello world" { - return - } + if (HelloWorld() != "hello world") && (HelloWorld() != "Hello world") { t.Errorf("got %s expected %s", HelloWorld(), "hello world") } }