[MacRuby] #1496: Range#first(num) should return array which includes the num elements.
#1496: Range#first(num) should return array which includes the num elements. ----------------------------------+----------------------------------------- Reporter: watson1978@… | Owner: lsansonetti@… Type: defect | Status: new Priority: blocker | Milestone: Component: MacRuby | Keywords: ----------------------------------+----------------------------------------- Test Script: {{{ rng = (0..10) p rng.first(0) p rng.first(1) p rng.first(2) }}} Result: {{{ $ ruby19 test_range.rb [] [0] [0, 1] $ macruby test_range.rb [0] [0, 1] [0, 1, 2] }}} Range#first(0) should return empty array, #first(1) should return one element... -- Ticket URL: <http://www.macruby.org/trac/ticket/1496> MacRuby <http://macruby.org/>
#1496: Range#first(num) should return array which includes the num elements. ----------------------------------+----------------------------------------- Reporter: watson1978@… | Owner: lsansonetti@… Type: defect | Status: closed Priority: blocker | Milestone: Component: MacRuby | Resolution: fixed Keywords: | ----------------------------------+----------------------------------------- Changes (by watson1978@…): * status: new => closed * resolution: => fixed Comment: Fixed with https://github.com/MacRuby/MacRuby/commit/33add5d012b46338ba79691730898cb309... -- Ticket URL: <http://www.macruby.org/trac/ticket/1496#comment:1> MacRuby <http://macruby.org/>
participants (1)
-
MacRuby