[MacRuby] #864: String#sum(bits), throws an exception when specified bits >= 64.
#864: String#sum(bits), throws an exception when specified bits >= 64. ----------------------------------+----------------------------------------- Reporter: watson1978@… | Owner: lsansonetti@… Type: defect | Status: new Priority: minor | Milestone: Component: MacRuby | Keywords: ----------------------------------+----------------------------------------- Test Script: {{{ #!ruby $ cat test_sum.rb 0.upto(200) {|bits| ret = "xyz".sum(bits) p "#{bits} : #{ret}" } }}} Result of Ruby 1.9.1: {{{ $ ruby test_sum.rb --- snip --- "198 : 363" "199 : 363" "200 : 363" }}} Result of MacRuby Trunk: {{{ $ macruby test_sum.rb --- snip --- "61 : 363" "62 : 363" "63 : 363" /Users/watson/src/MacRuby/test_sum.rb:1:in `<main>': bits argument too big (ArgumentError) }}} -- Ticket URL: <http://www.macruby.org/trac/ticket/864> MacRuby <http://macruby.org/>
#864: String#sum(bits), throws an exception when specified bits >= 64. ----------------------------------+----------------------------------------- Reporter: watson1978@… | Owner: lsansonetti@… Type: defect | Status: closed Priority: minor | Milestone: MacRuby 0.7 Component: MacRuby | Resolution: fixed Keywords: | ----------------------------------+----------------------------------------- Changes (by lsansonetti@…): * status: new => closed * resolution: => fixed * milestone: => MacRuby 0.7 Comment: Should be fixed in r4470. -- Ticket URL: <http://www.macruby.org/trac/ticket/864#comment:1> MacRuby <http://macruby.org/>
participants (1)
-
MacRuby