github.com/machinefi/w3bstream@v1.6.5-rc9.0.20240426031326-b8c7c4876e72/pkg/depends/x/misc/slice/slice_to_any_slice_test.go (about) 1 package slice_test 2 3 import ( 4 "testing" 5 6 "github.com/onsi/gomega" 7 8 "github.com/machinefi/w3bstream/pkg/depends/x/misc/slice" 9 ) 10 11 func TestToAnySlice(t *testing.T) { 12 strings := []string{"a", "b"} 13 gomega.NewWithT(t).Expect(slice.ToAnySlice(strings...)). 14 To(gomega.Equal([]interface{}{"a", "b"})) 15 }