Skip to content

Commit d1f7df7

Browse files
committed
fix tests for 0.7
1 parent e8f175f commit d1f7df7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/red_black_tree.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@
44
# color is true if it's a Red Node, else it's false
55
mutable struct RBTreeNode{K}
66
color::Bool
7+
data::K
78
leftChild::Union{Nothing, RBTreeNode{K}}
89
rightChild::Union{Nothing, RBTreeNode{K}}
910
parent::Union{Nothing, RBTreeNode{K}}
10-
data::K
1111

12-
RBTreeNode{K}() where K = new{K}(true, nothing, nothing, nothing)
13-
RBTreeNode{Any}() = new{Any}(true, nothing, nothing, nothing, nothing)
14-
RBTreeNode{K}(d::K) where K = new{K}(true, nothing, nothing, nothing, d)
12+
RBTreeNode{K}() where K = new{K}(true, nothing, nothing, nothing, nothing)
13+
14+
RBTreeNode{K}(d::K) where K = new{K}(true, d, nothing, nothing, nothing)
1515
end
1616

1717
RBTreeNode() = RBTreeNode{Any}()

0 commit comments

Comments
 (0)