Array specs #52

Merged
merged 22 commits into from Mar 3, 2012

2 participants

@gglresearchanddevelopment

Update IronRuby to pass more of rubyspec core/array specs

gglresearchanddevelopment and others added some commits Jan 4, 2012
@gglresearchanddevelopment gglresearchanddevelopment Update implementation of Enumerable.zip to call .each on args if .to_…
…ary fails (as per rubyspec)
a3d5012
Orion Edwards [GGL] Update implementation of Array.uniq and uniq! to use blocks correctly…
… (as per rubyspec)

Bugfix uniq! when dealing with recursive arrays (as per rubyspec)
5a52d46
Orion Edwards [GGL] Update implementation of Array[]= to check frozen before coercing arg…
…s, and change the error message to match MRI 1.9.2 (as per rubyspec)
510023a
Orion Edwards [GGL] Update implementation of Array#fill to check frozen on empty array, a…
…nd do proper boundary checking (as per rubyspec)
ff5f4bf
Orion Edwards [GGL] Update implementation of Array.shuffle! to check frozen correctly (as…
… per rubyspec)
3ce9b1f
Orion Edwards [GGL] Implement Array#select! (as per rubyspec) 8208196
Orion Edwards [GGL] Update Array#shift to check for frozen correctly (as per rubyspec)
Implement Array#shift(n) (as per rubyspec)
7ded4c3
Orion Edwards [GGL] Implement Array#sample and Arran#sample(n) as per rubyspec f041d20
Orion Edwards [GGL] Implement Array#rotate and Array#rotate! as per rubyspec b687d8b
Orion Edwards [GGL] Implement Array#rindex when called with no args and no block (reverse…
… index-finding enumerator) as per rubyspec
62f936c
Orion Edwards [GGL] Array#pop should check frozen even when empty (as per rubyspec). Also…
… update other fixes to use existing implementation of RequireNotFrozen(IList) instead of manually casting
a1ec97c
Orion Edwards [GGL] #to_ary is allowed to return nil. Fixes Array#flatten as per rubyspec 411a3e5
Orion Edwards [GGL] Add range checking to Array#product so the tests no longer run out of…
… memory and hang (also part of rubyspec error checking)
3f5b7a6
Orion Edwards [GGL] Minor fixes:
- Some methods were declared as taking RubyArray parameters instead of IList
- One more instance of RequireNotFrozen
b3efe76
Orion Edwards [GGL] Minor fixes:
- Some methods were declared as taking RubyArray parameters instead of IList
- One more instance of RequireNotFrozen
b017689
Orion Edwards [GGL] Resolve merge conflict caused by accidental checkin of wrong initiali…
…zers.generated file
e83501a
Orion Edwards [GGL] Merge branch 'master' into array_specs adfd117
Orion Edwards [GGL] I was using ArrayList (which is not available in Silverlight) interna…
…lly Array#sample. Update to use List<object>
7975d9e
Orion Edwards [GGL] Update Array#slice! to deal with out-of-range values as per rubyspec ae966af
Orion Edwards [GGL] Update Array#inspect to taint result strings correctly as per rubyspec c89e236
Orion Edwards [GGL] Implement Array#keep_if as per rubyspec e92404b
Orion Edwards [GGL] Update Array#product to handle block parameters as per rubyspec ede005c
@tmat tmat merged commit ede005c into IronLanguages:master Mar 3, 2012
@tmat
IronLanguages member

Merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment