1
0
mirror of https://github.com/duke-git/lancet.git synced 2026-02-17 11:12:28 +08:00

feat: add MaxHeap func PrintStructure

This commit is contained in:
dudaodong
2022-06-29 11:08:07 +08:00
parent 0f61321d5b
commit 7930f517ae
2 changed files with 69 additions and 0 deletions

View File

@@ -34,6 +34,8 @@ func TestMaxHeap_Push(t *testing.T) {
assert.Equal(expected, heap.data)
assert.Equal(12, heap.Size())
heap.PrintStructure()
}
func TestMaxHeap_Pop(t *testing.T) {