diff --git a/hello_test.go b/hello_test.go index 51a22a0..7f64b7c 100644 --- a/hello_test.go +++ b/hello_test.go @@ -3,10 +3,12 @@ package main import "testing" func TestHello(t *testing.T) { - got := Hello("Oliver") - want := "Hello, Oliver" + t.Run("saying hello to people", func (t *testing.T) { + got := Hello("Oliver") + want := "Hello, Oliver" - if got != want { - t.Errorf("got %q want %q", got, want) - } + if got != want { + t.Errorf("got %q want %q", got, want) + } + }) }