Skip to content

Commit b7133eb

Browse files
committed
Fix bugs
1 parent ae1746a commit b7133eb

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test/data-structures/red-black-tree.spec.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,9 @@ describe('RBTree', function () {
5959
tree.put(1, 'bar');
6060
tree.put(0, 'baz');
6161
expect(tree._root._left).not.toBeNull();
62+
expect(tree._root._left.isRed()).toBeTruthy();
63+
tree.put(2, 'baz');
64+
expect(tree._root._left).not.toBeNull();
6265
});
6366

6467
});

0 commit comments

Comments
 (0)