mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-12-29 09:27:36 +00:00
18 lines
265 B
Go
18 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)
|
||
|
}
|