Project

General

Profile

Actions

Bug #599

closed

mini/test reports incorrect source file for refutations

Added by pragdave (Dave Thomas) about 16 years ago. Updated over 13 years ago.

Status:
Closed
Target version:
-
ruby -v:
Backport:
[ruby-core:18871]

Description

=begin
require 'test/unit'

class ShowTestDifference < Test::Unit::TestCase
def test_positive_logic
assert false
end

def test_negative_logic
refute true
end
end

results in

dave[RUBY3/Book 17:42:17*] ruby t.rb
Loaded suite t
Started
FF
Finished in 0.000552 seconds.

  1. Failure:
    test_negative_logic(ShowTestDifference) [/usr/local/rubybook/lib/ruby/1.9.0/mini/test.rb:229]:
    Failed refutation, no message given

  2. Failure:
    test_positive_logic(ShowTestDifference) [t.rb:5]:
    Failed assertion, no message given.

2 tests, 2 assertions, 2 failures, 0 errors

Note that the source file listed for the refutation is mini/test.rb, and not the file containing the actual test.
=end


Files

t.rb (172 Bytes) t.rb pragdave (Dave Thomas), 09/25/2008 07:45 AM
Actions #1

Updated by zenspider (Ryan Davis) about 16 years ago

=begin

On Sep 24, 2008, at 15:45 , Dave Thomas wrote:

  1. Failure:
    test_negative_logic(ShowTestDifference) [/usr/local/rubybook/lib/
    ruby/1.9.0/mini/test.rb:229]:
    Failed refutation, no message given

  2. Failure:
    test_positive_logic(ShowTestDifference) [t.rb:5]:
    Failed assertion, no message given.

my fault entirely... I didn't update my backtrace filtering after I
settled on "refute". Fixed.

=end

Actions #2

Updated by drbrain (Eric Hodel) about 16 years ago

  • Status changed from Open to Closed

=begin

=end

Actions

Also available in: Atom PDF

Like0
Like0Like0