[MacRuby] #1496: Range#first(num) should return array which includes the num elements.
MacRuby
ruby-noreply at macosforge.org
Thu Apr 5 18:32:22 PDT 2012
#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/>
More information about the macruby-tickets
mailing list