Make the name dynamic
This commit is contained in:
parent
cdfe936ef4
commit
11aa1735e1
2 changed files with 5 additions and 5 deletions
|
@ -3,8 +3,8 @@ package main
|
|||
import "testing"
|
||||
|
||||
func TestHello(t *testing.T) {
|
||||
got := Hello()
|
||||
want := "Hello, world"
|
||||
got := Hello("Oliver")
|
||||
want := "Hello, Oliver"
|
||||
|
||||
if got != want {
|
||||
t.Errorf("got %q want %q", got, want)
|
||||
|
|
Reference in a new issue