mirror of
https://gitee.com/johng/gf.git
synced 2024-11-30 03:07:45 +08:00
update unit test for gring
This commit is contained in:
parent
2c53f934c9
commit
230be66fa9
@ -85,8 +85,10 @@ func TestRing_Unlink(t *testing.T) {
|
||||
}
|
||||
// 1 2 3 4 5
|
||||
// 删除当前位置往后的2个数据,返回被删除的数据
|
||||
// 重新计算s len
|
||||
s := r.Unlink(2) // 2 3
|
||||
gtest.Assert(s.Val(), 2)
|
||||
gtest.Assert(s.Len(), 1)
|
||||
})
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user