JRuby (please use github issues at http://bugs.jruby.org)
  1. JRuby (please use github issues at http://bugs.jruby.org)
  2. JRUBY-3390

RubySpec: Numeric#coerce calls #to_f to convert other if self responds to #to_f

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: JRuby 1.2
    • Fix Version/s: JRuby 1.2
    • Component/s: RubySpec
    • Labels:
      None
    • Number of attachments :
      0

      Description

           [java] Numeric#coerce calls #to_f to convert other if self responds to #to_f FAILED
           [java] Expected TypeError but no exception was raised
           [java] /Users/headius/projects/jruby/spec/ruby/core/numeric/coerce_spec.rb:19
           [java] /Users/headius/projects/jruby/spec/ruby/core/numeric/coerce_spec.rb:4
           [java] /Users/headius/projects/jruby/spec/ruby/core/numeric/coerce_spec.rb:54:in `load'
      

        Activity

        Hide
        Marcin Mielzynski added a comment -

        Fixed in r9104.

        Show
        Marcin Mielzynski added a comment - Fixed in r9104.

          People

          • Assignee:
            Marcin Mielzynski
            Reporter:
            Charles Oliver Nutter
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: