1
0
mirror of https://github.com/charlienet/go-mixed.git synced 2025-07-17 16:12:42 +08:00
Files
go-mixed/maps/map_test.go
2022-05-12 09:35:20 +08:00

28 lines
405 B
Go

package maps_test
import (
"testing"
"github.com/charlienet/go-mixed/maps"
)
func TestMap(t *testing.T) {
_ = maps.NewHashMap[string, any]()
}
func TestHashMap(t *testing.T) {
var m maps.Map[string, any] = maps.NewHashMap[string, any]()
_ = m
}
func TestIter(t *testing.T) {
m := maps.NewHashMap[string, string]()
m.Set("abc", "abc")
for e := range m.Iter() {
t.Log(e.Key, e.Value)
}
}