More tests.

This commit is contained in:
Oleksii Trekhleb
2018-04-04 07:02:56 +03:00
parent 72baedeb89
commit f5ae2360f2
6 changed files with 12 additions and 0 deletions

View File

@@ -99,5 +99,7 @@ describe('BinaryTreeNode', () => {
expect(rootNode.replaceChild(rootNode.right, replacementNode)).toBeTruthy();
expect(rootNode.traverseInOrder()).toEqual([1, 2, 5]);
expect(rootNode.replaceChild(new BinaryTreeNode(), new BinaryTreeNode())).toBeFalsy();
});
});