[#67346] Future of test suites for Ruby — Charles Oliver Nutter <headius@...>
I'll try to be brief so we can discuss all this. tl;dr: RubySpec is
19 messages
2015/01/05
[#67353] Re: Future of test suites for Ruby
— Tanaka Akira <akr@...>
2015/01/05
2015-01-06 7:18 GMT+09:00 Charles Oliver Nutter <headius@headius.com>:
[#67444] [ruby-trunk - Feature #10718] [Open] IO#close should not raise IOError on closed IO objects. — akr@...
Issue #10718 has been reported by Akira Tanaka.
3 messages
2015/01/09
[#67689] Keyword Arguments — Anthony Crumley <anthony.crumley@...>
Please forgive my ignorance as I am new to MRI development and am still
5 messages
2015/01/20
[#67733] [ruby-trunk - Bug #10761] Marshal.dump 100% slower in 2.2.0 vs 2.1.5 — normalperson@...
Issue #10761 has been updated by Eric Wong.
4 messages
2015/01/21
[#67736] Re: [ruby-trunk - Bug #10761] Marshal.dump 100% slower in 2.2.0 vs 2.1.5
— Eric Wong <normalperson@...>
2015/01/22
normalperson@yhbt.net wrote:
[#67772] Preventing Redundant Email Messages — Jeremy Evans <code@...>
For a long time, I've wondered why I sometimes receive redundant email
5 messages
2015/01/23
[ruby-core:67826] [ruby-trunk - Feature #10255] Math.log: check domain of base argument
From:
mail@...
Date:
2015-01-27 02:32:07 UTC
List:
ruby-core #67826
Issue #10255 has been updated by gogo tanaka. Related to https://bugs.ruby-lang.org/issues/10785 ---------------------------------------- Feature #10255: Math.log: check domain of base argument https://bugs.ruby-lang.org/issues/10255#change-51235 * Author: gogo tanaka * Status: Open * Priority: Normal * Assignee: ---------------------------------------- I suppose Math.log with base 0 or 1 is undefinable or has no meaning, so I think it should be raise `Math::DomainError` It is helpful to prevent unnecessary concern or misunderstand. Yes I know there are many controversial issue about that, specially treating Math.log(0.0, 0.0), Math.log(1.0, 0.0) and Math.log(1.0, 1.0). Even if there are some reason it had better return value, I suppose `Math.log(2.0,1.0)` should not be `Infinity` and `Math.log(1.0, 0.0)` should not be `-0.0`. In terms of `raises Math::DomainError instead of returning NaN if the base is less than 0` at the (https://bugs.ruby-lang.org/issues/9797) , this PATCH make sense. But please feel free to point out my unsatisfactory points. (Actually this is first time to write c-lang thoroughly) Thank you. gogo. Before ``` # For all 0 <= n < 1 Math.log(n, 1.0) => -Infinity Math.log(1.0, 1.0) => NaN # For all n > 1 Math.log(n, 1.0) => Infinity Math.log(0.0,0.0) => NaN # For all 0 < n < 1 Math.log(n, 0.0) => 0.0 # For all n >= 1 Math.log(n, 0.0) => - 0.0 ``` After ``` # For all n >= 0. Actually for all n <- R (a real number) because of checking domain of first argument Math.log(n, 1.0) Math::DomainError: Numerical argument is out of domain - “log” Math.log(n, 0.0) Math::DomainError: Numerical argument is out of domain - “log” ``` ---Files-------------------------------- test_math.rb_ Add tests for Math.log.PATCH (1.06 KB) NEWS_ Update for Math.log.PATCH (564 Bytes) math.c_ Math.log with base 0 or 1 should raise DomainError.PATCH (502 Bytes) update_rdoc_for_Math.log.PATCH (721 Bytes) -- https://bugs.ruby-lang.org/