Skip to content

Commit

Permalink
added hello your name
Browse files Browse the repository at this point in the history
  • Loading branch information
PeanutBrrutter committed May 9, 2024
1 parent dfc014f commit 43a43eb
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions hello.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,7 @@ package main
func hello() string {
return "Hello World!"
}

func helloYourName(name string) string {
return "Hello " + name + "!"
}
5 changes: 5 additions & 0 deletions hello_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,9 @@ func TestHello(t *testing.T) {
g.Assert(hello()).Equal("Hello World!")
})
})
g.Describe("Hello your name", func() {
g.It("Should print hello your name", func() {
g.Assert(helloYourName("John")).Equal("Hello John!")
})
})
}

0 comments on commit 43a43eb

Please sign in to comment.