1
0
mirror of https://github.com/charlienet/go-mixed.git synced 2025-07-18 08:32:40 +08:00
This commit is contained in:
2022-04-07 15:26:49 +08:00
parent cfa90dff4f
commit 9ff187c944
4 changed files with 58 additions and 0 deletions

View File

@ -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))
}