mirror of
https://gitee.com/johng/gf
synced 2026-06-07 02:12:11 +08:00
测试添加
This commit is contained in:
@ -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"})
|
||||
|
||||
Reference in New Issue
Block a user