测试添加

This commit is contained in:
Jay
2019-04-08 17:49:15 +08:00
parent b97bbbfa3d
commit 39c65d9e9a

View File

@ -33,6 +33,8 @@ func Test_Map_Basic(t *testing.T) {
gtest.Assert(m.Get("fun"),3)
m.GetOrSetFunc("fun",getValue)
gtest.Assert(m.SetIfNotExistFunc("fun",getValue),false)
gtest.Assert(m.SetIfNotExistFuncLock("funlock",getValue),false)
m.Clear()
gtest.Assert(m.Size(), 0)
m2 := gmap.NewFrom(map[interface{}]interface{}{1: 1, "key1": "val1"})