[RubySpec][1.9] Random#rand with Range considers Integers as Floats if one end point is a float -----------------------------------------------------------------------------------------------
Key: JRUBY-5243 URL: http://jira.codehaus.org/browse/JRUBY-5243 Project: JRuby Issue Type: Bug Components: Core Classes/Modules, RubySpec Affects Versions: JRuby 1.6 Reporter: Charles Oliver Nutter {noformat} Random#rand with Range considers Integers as Floats if one end point is a float FAILED Expected 1 (Fixnum) to be kind of Float /Users/headius/projects/jruby/spec/ruby/core/random/rand_spec.rb:202:in `(root)' org/jruby/RubyBasicObject.java:1652:in `instance_eval19' org/jruby/RubyEnumerable.java:1264:in `all_p' org/jruby/RubyArray.java:1655:in `each' /Users/headius/projects/jruby/spec/ruby/core/random/rand_spec.rb:164:in `(root)' /Users/headius/projects/jruby/spec/ruby/core/random/rand_spec.rb:3:in `(root)' org/jruby/RubyKernel.java:1076:in `load19' /Users/headius/projects/jruby/spec/ruby/core/random/rand_spec.rb:56:in `files' org/jruby/RubyBasicObject.java:1652:in `instance_eval19' org/jruby/RubyArray.java:1655:in `each' {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