mirror of
https://github.com/duke-git/lancet.git
synced 2026-02-09 23:22:28 +08:00
feat: and Clear and IsEmpty func
This commit is contained in:
@@ -74,7 +74,7 @@ func TestLinkedStack_Empty(t *testing.T) {
|
||||
assert.Equal(false, stack.IsEmpty())
|
||||
assert.Equal(1, stack.Length())
|
||||
|
||||
stack.EmptyStack()
|
||||
stack.Clear()
|
||||
assert.Equal(true, stack.IsEmpty())
|
||||
assert.Equal(0, stack.Length())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user