mirror of
https://github.com/charlienet/go-mixed.git
synced 2025-07-18 08:32:40 +08:00
array
This commit is contained in:
@ -4,6 +4,7 @@ import (
|
||||
"testing"
|
||||
|
||||
"github.com/charlienet/go-mixed/collections/generics"
|
||||
"github.com/stretchr/testify/assert"
|
||||
)
|
||||
|
||||
func TestSet(t *testing.T) {
|
||||
@ -15,3 +16,9 @@ func TestSet(t *testing.T) {
|
||||
|
||||
_ = expected
|
||||
}
|
||||
|
||||
func TestSetExist(t *testing.T) {
|
||||
s := generics.NewHashSet(1, 2, 3)
|
||||
assert.True(t, s.Contain(1))
|
||||
assert.False(t, s.Contain(5))
|
||||
}
|
||||
|
Reference in New Issue
Block a user