fix(comparator): propagate similarity

Signed-off-by: Matej Focko <mfocko@redhat.com>
This commit is contained in:
Matej Focko 2022-05-07 15:38:44 +02:00
parent 6bde21f85c
commit d8a746268b
Signed by: mfocko
GPG key ID: 7C47D46246790496

View file

@ -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)
)