GoCollections/collections/HashMap_test.go
2022-03-28 18:19:05 +08:00

17 lines
254 B
Go

package collections
import (
"fmt"
"github.com/tursom/GoCollections/lang"
"testing"
)
func TestHashMap_put(t *testing.T) {
m := NewHashMap[lang.Int, int]()
for i := 0; i < 100; i++ {
fmt.Println(m)
m.Put(lang.Int(i), i+1)
}
fmt.Println(m)
}