diff --git a/pkg/structure/channelx/channelx_test.go b/pkg/structure/channelx/channelx_test.go index 7fffdf9..32127d8 100644 --- a/pkg/structure/channelx/channelx_test.go +++ b/pkg/structure/channelx/channelx_test.go @@ -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) }