github.com/nspcc-dev/neo-go@v0.105.2-0.20240517133400-6be757af3eba/cli/flags/util_test.go (about) 1 package flags 2 3 import ( 4 "testing" 5 6 "github.com/stretchr/testify/require" 7 ) 8 9 func TestEachName(t *testing.T) { 10 expected := "*one*two*three" 11 actual := "" 12 13 eachName(" one,two ,three", func(s string) { 14 actual += "*" + s 15 }) 16 require.Equal(t, expected, actual) 17 }