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-03-27 10:23:14 +08:00
parent 38d75633d9
commit 6f1eadb7b5
8 changed files with 430 additions and 0 deletions

View File

@ -0,0 +1,17 @@
package generics_test
import (
"testing"
"github.com/charlienet/go-mixed/collections/generics"
)
func TestSet(t *testing.T) {
s := generics.NewHashSet[int]()
s.Add(1, 2, 3)
expected := generics.NewHashSet(1, 2, 3)
_ = expected
}