Added context to multi-segment mutation

This commit is contained in:
Tim Chambers 2014-08-04 11:54:14 -07:00
parent e7d6fef0d8
commit b8f72f77b2

View file

@ -484,7 +484,7 @@ module Mutant
original, current = mutation.original_source, mutation.source
diff = Mutant::Diff.build(original, current)
diff = color? ? diff.colorized_diff : diff.diff
puts(diff || DIFF_ERROR_MESSAGE)
puts(diff || ['Original source:',original, 'Mutated Source:', current,DIFF_ERROR_MESSAGE])
end
# Noop details