Commit 39145aaf authored by Taddeus Kroes's avatar Taddeus Kroes

Added support for negated integer equivalence check in Leaf nodes.

parent 144bf670
...@@ -326,7 +326,8 @@ class ExpressionLeaf(Leaf, ExpressionBase): ...@@ -326,7 +326,8 @@ class ExpressionLeaf(Leaf, ExpressionBase):
other_type = type(other) other_type = type(other)
if other_type in TYPE_MAP: if other_type in TYPE_MAP:
return TYPE_MAP[other_type] == self.type and self.value == other return TYPE_MAP[other_type] == self.type \
and self.actual_value() == other
return self.negated == other.negated and self.type == other.type \ return self.negated == other.negated and self.type == other.type \
and self.value == other.value and self.value == other.value
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment