[Ironruby-core] [patch] More fixes for Array (IListOps.cs)

Daniele Alessandri suppakilla at gmail.com
Wed Apr 15 12:30:34 EDT 2009


Hi,

I've committed more fixes for a few methods of the Array class that
were failing to pass the specs:

http://github.com/nrk/ironruby/commit/b754ddcd3bdd2c4513e456c9cf3933772e8541f9

These are the specs affected by this patch:

* core/array/compact
  - Array#compact keeps tainted status even if all elements are removed
* core/array/delete
  - Array#delete may be given a block that is executed if no element
matches object
* core/array/first
  - Array#first does not return subclass instance when passed count on
Array subclasses
* core/array/last
  - Array#last does not return subclass instance on Array subclasses
* core/array/flatten
  - Array#flatten returns subclass instance for Array subclasses
  - Array#flatten does not call flatten on elements
* core/array/fetch
  - Array#fetch passes the original index argument object to the
block, not the converted Integer

I hope I haven't forgotten anything important this time, changes to
the tags files are included in the commit :-)

Regards,
Daniele

-- 
Daniele Alessandri
http://www.clorophilla.net/blog/
http://twitter.com/JoL1hAHN


More information about the Ironruby-core mailing list