Project

General

Profile

Actions

Bug #8417

closed

assert_in_epsilon(-1, -1) failed

Added by no6v (Nobuhiro IMAI) almost 11 years ago. Updated almost 11 years ago.

Status:
Rejected
Target version:
-
ruby -v:
ruby 2.1.0dev (2013-05-18 trunk 40801) [x86_64-linux]
[ruby-core:55035]

Description

=begin
assert_in_epsilon(-1, -1) failed as below:

require "test/unit"

class AssertInEpsilonTest < Test::Unit::TestCase
def test_plus
assert_in_epsilon(1, 1)
end

def test_minus
assert_in_epsilon(-1, -1)
end
end

>> Loaded suite -

>> Started

>> F

>> ===============================================================================

>> Failure:

>> <-1> -/+ (<-1> * <0.001>)[-0.001] expected to include

>> <-1>.

>>

>> Relation:

>> <<-1> < <-1>-(<-1><0.001>)[-0.999] <= <-1>+(<-1><0.001>)[-1.001]>

>> test_minus(AssertInEpsilonTest)

>> -:9:in `test_minus'

>> ===============================================================================

>> .

>>

>> Finished in 0.01199642 seconds.

>>

>> 2 tests, 2 assertions, 1 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications

>> 50% passed

>>

>> 166.72 tests/s, 166.72 assertions/s

Though I'm not sure the difference between "test" and "minitest",
minitest seems to be succeeded.

require "minitest/unit"

MiniTest::Unit::TestCase.new(?-).assert_in_epsilon(-1, -1)
=end

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0