14 lines
217 B
Go
14 lines
217 B
Go
package main
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/test-go/testify/require"
|
|
)
|
|
|
|
func Test_getGreeting(t *testing.T) {
|
|
t.Run("success", func(t *testing.T) {
|
|
require.Equal(t, "Hello, World!", getGreeting("World"))
|
|
})
|
|
}
|