From: Ryan Davis Date: 2011-07-16T07:26:48+09:00 Subject: [ruby-core:38093] [Ruby 1.9 - Feature #1193][Closed] Justified Error Messages Issue #1193 has been updated by Ryan Davis. Status changed from Assigned to Closed The latest minitest's assert_equal uses diff where appropriate. ---------------------------------------- Feature #1193: Justified Error Messages http://redmine.ruby-lang.org/issues/1193 Author: Simon Chiang Status: Closed Priority: Normal Assignee: Ryan Davis Category: lib Target version: 1.9.x =begin One nice thing about Test::Unit output is that failures are justified making string comparisons easier. In Test::Unit <"minitest/unit is a small and fast replacement for ruby's huge and slow test/unit."> expected but was <"minitest/unit is a small and fast replaecment for ruby's huge and slow test/unit.">. In MiniTest::Unit Expected "minitest/unit is a small and fast replacement for ruby's huge and slow test/unit.", not "minitest/unit is a small and fast replaecment for ruby's huge and slow test/unit.". The error (replaecment) is harder to find when the output is not justified. FYI I submitted this as a feature request to Ryan Davis on the Rubyforge site and he rejected the request. I am resubmitting it here because I feel it is quite important and trivial to implement. =end -- http://redmine.ruby-lang.org