forked from p93542168/wheat-cache
test(channex): add channelx test
This commit is contained in:
parent
ef4cbb0cee
commit
a57eab1184
|
@ -14,6 +14,11 @@ func TestChannelX_Push(t *testing.T) {
|
|||
require.Equal(t, 24, int(up))
|
||||
|
||||
res, up := c.Pop()
|
||||
require.Equal(t, 24, int(up))
|
||||
require.Equal(t, -24, int(up))
|
||||
require.Equal(t, res, "111")
|
||||
|
||||
up = c.Push("111")
|
||||
c.CLean()
|
||||
|
||||
require.Equal(t, c.Length(), 0)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue