[1.9] Missing two-arg form of Integer() method
----------------------------------------------

                 Key: JRUBY-4449
                 URL: http://jira.codehaus.org/browse/JRUBY-4449
             Project: JRuby
          Issue Type: Bug
          Components: Core Classes/Modules, Intro, Ruby 1.9, RubySpec
    Affects Versions: JRuby 1.4
            Reporter: Charles Oliver Nutter


Easy one...I believe it just needs to take an optional radix parameter. This 
causes a bunch of failures running mspec for 
spec/ruby/core/kernel/Integer_spec.rb that all look like this:

{noformat}
~/projects/jruby ➔ jruby spec/mspec/bin/mspec -T--1.9 
spec/ruby/core/kernel/Integer_spec.rb 
jruby 1.5.0.dev (ruby 1.9.2dev trunk 24787) (2010-01-10 62c5383) (Java 
HotSpot(TM) 64-Bit Server VM 1.6.0_17) [x86_64-java]
...F.......................................................................EE..E.E...E..
....EEEE.EEE...............EEE...............EEE.EEE.EEE.......EEE.....
..EEE..........EEE..............F.................................................
......................EE..E.E...E......EEEE.EEE...............EEE...........
....EEE.EEE.EEE.......EEE.......EEE..........EEE...........

1)
Kernel.Integer raises a TypeError when passed nil FAILED
Expected TypeError but no exception was raised
/Users/headius/projects/jruby/spec/ruby/core/kernel/Integer_spec.rb:23
/Users/headius/projects/jruby/spec/ruby/core/kernel/Integer_spec.rb:503
/Users/headius/projects/jruby/spec/ruby/core/kernel/Integer_spec.rb:55:in `load'

.....
{noformat}

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to