mirror of
https://github.com/charlienet/go-mixed.git
synced 2025-07-18 16:42:41 +08:00
18 lines
241 B
Go
18 lines
241 B
Go
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
|
|
}
|