We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 123d257 commit 00c36e9Copy full SHA for 00c36e9
test/runtests.jl
@@ -140,6 +140,19 @@ using Test
140
@test tree.root.left.key == 1
141
@test tree.root.right.key == 3
142
143
+ # minnode branch
144
+ tree = AVLTree{Int,Int}()
145
+ tree[4] = 40
146
+ tree[2] = 20
147
+ tree[5] = 50
148
+ tree[1] = 10
149
+ tree[3] = 30
150
+ delete!(tree, 4)
151
+ @test tree.root.key == 2
152
+ @test tree.root.left.key == 1
153
+ @test tree.root.right.key == 5
154
+ @test tree.root.right.left.key == 3
155
+
156
# tree that accepts any types
157
tree = AVLTree()
158
tree[2] = 'A'
0 commit comments