fix(comparator): propagate similarity
Signed-off-by: Matej Focko <mfocko@redhat.com>
This commit is contained in:
parent
6bde21f85c
commit
d8a746268b
1 changed files with 2 additions and 2 deletions
|
@ -19,8 +19,8 @@ def nodes_eq(
|
|||
return (
|
||||
left_node.value == right_node.value
|
||||
and (not same or left_node.rank == right_node.rank)
|
||||
and nodes_eq(left_node.left, right_node.left)
|
||||
and nodes_eq(left_node.right, right_node.right)
|
||||
and nodes_eq(left_node.left, right_node.left, same)
|
||||
and nodes_eq(left_node.right, right_node.right, same)
|
||||
)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue