Issue #10261 has been reported by gogo tanaka.

----------------------------------------
Feature #10261: [PATCH] Fix improper test method
https://bugs.ruby-lang.org/issues/10261

* Author: gogo tanaka
* Status: Open
* Priority: Normal
* Assignee: 
* Category: test
* Target version: current: 2.2.0
----------------------------------------
Right now, a test method `TestMath#assert_infinity` implement like below,

```
def assert_infinity(a, *rest)
  rest = ["not infinity: #{a.inspect}"] if rest.empty?
  assert_not_predicate(a, :finite?, *rest)
end
```

I suppose this is intended to check Float::INFINITY or not, 

but Float#finite returns True if the value is not NaN or ¡ŞFloat::INFINITY.

So I fixed it to check Float::INFINITY or not.

If you have  different aim for that, please feel free to tell me.

Thank you. gogo.



---Files--------------------------------
test_math_ Fix improper test method.PATCH (443 Bytes)


-- 
https://bugs.ruby-lang.org/