(Not documented)
# File lib/test/unit/diff.rb, line 718 def diff(differ_class, from, to, options={}) differ = differ_class.new(from.split(/\r?\n/), to.split(/\r?\n/)) differ.diff(options).join("\n") end
(Not documented)
# File lib/test/unit/diff.rb, line 700 def fold(string) string.split(/\r?\n/).collect do |line| line.gsub(/(.{78})/, "\\1\n") end.join("\n") end
(Not documented)
# File lib/test/unit/diff.rb, line 706 def folded_readable(from, to, options={}) readable(fold(from), fold(to), options) end
(Not documented)
# File lib/test/unit/diff.rb, line 696 def need_fold?(diff) /^[-+].{79}/ =~ diff end
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.