Skip to content

Commit 11626cf

Browse files
svediresvedire
svedire
authored and
svedire
committed
updated doctests
1 parent 0b3de75 commit 11626cf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

data_structures/binary_tree/binary_tree_mirror.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@ def binary_tree_mirror(binary_tree: dict, root: int = 1) -> dict:
2222
>>> binary_tree_mirror({ 1: [2,3], 2: [4,5], 3: [6,7], 4: [10,11]}, 5)
2323
Traceback (most recent call last):
2424
...
25-
ValueError: binary tree cannot be empty
25+
ValueError: root 5 is not present in the binary_tree
2626
>>> binary_tree_mirror({}, 5)
2727
Traceback (most recent call last):
2828
...
29-
ValueError: root 5 is not present in the binary_tree
29+
ValueError: binary tree cannot be empty
3030
"""
3131
if not binary_tree:
3232
raise ValueError("binary tree cannot be empty")

0 commit comments

Comments
 (0)