Project

General

Profile

Actions

Feature #1193

closed

Justified Error Messages

Added by bahuvrihi (Simon Chiang) almost 16 years ago. Updated over 13 years ago.

Status:
Closed
Target version:
[ruby-core:22333]

Description

=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

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0Like0Like0