summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/diff/lcs/change.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/diff/lcs/change.rb b/lib/diff/lcs/change.rb
index 4077095..3104a51 100644
--- a/lib/diff/lcs/change.rb
+++ b/lib/diff/lcs/change.rb
@@ -54,6 +54,7 @@ class Diff::LCS::Change
include Comparable
def ==(other)
+ (self.class == other.class) and
(self.action == other.action) and
(self.position == other.position) and
(self.element == other.element)
@@ -159,6 +160,7 @@ class Diff::LCS::ContextChange < Diff::LCS::Change
end
def ==(other)
+ (self.class == other.class) and
(@action == other.action) and
(@old_position == other.old_position) and
(@new_position == other.new_position) and