This adds utilities/behavior to use diff output (when appropriate)
in assert_equal fail messages.
All of the behavior is customizable. Set a custom use_diff_proc
config value to control the conditions when diff output is used.
By default, use_diff_proc is set to the default_use_diff_proc
util which is true when either show output has newlines or is larger
than 29 chars. Set a custom run_diff_proc config value to customize
how the diff is generated. By default run_diff_proc uses the
syscmd_diff_proc util which used the diff --unified=-1 syscmd
to generate the diff output.
Diff output works with both standard and pretty print output.
This adds utilities/behavior to use diff output (when appropriate) in
assert_equal
fail messages.All of the behavior is customizable. Set a custom
use_diff_proc
config value to control the conditions when diff output is used. By default,use_diff_proc
is set to thedefault_use_diff_proc
util which is true when either show output has newlines or is larger than 29 chars. Set a customrun_diff_proc
config value to customize how the diff is generated. By defaultrun_diff_proc
uses thesyscmd_diff_proc
util which used thediff --unified=-1
syscmd to generate the diff output.Diff output works with both standard and pretty print output.
Closes #144.
@jcredding ready for review