neo-go/cli/flags/util_test.go
2020-08-26 10:14:55 +03:00

17 lines
265 B
Go

package flags
import (
"testing"
"github.com/stretchr/testify/require"
)
func TestEachName(t *testing.T) {
expected := "*one*two*three"
actual := ""
eachName(" one,two ,three", func(s string) {
actual += "*" + s
})
require.Equal(t, expected, actual)
}